...

Package ssl

import "simonwaldherr.de/go/golibs/ssl"
Overview
Index
Examples

Overview ▾

Generate SSL Certs via this simple to use ssl package.

func Check

func Check(certPath string, keyPath string) error

func Generate

func Generate(options map[string]string) error

Example

Code:

options := map[string]string{}
options["certPath"] = "x.cert"
options["keyPath"] = "x.key"
options["host"] = "*"
options["countryName"] = "DE"
options["provinceName"] = "Bavaria"
options["organizationName"] = "Lorem Ipsum Ltd"
options["commonName"] = "*"
ssl.Generate(options)