...
Package ssl
Generate SSL Certs via this simple to use ssl package.
func Check(certPath string, keyPath string) error
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)