github.com/mh-cbon/gssc (go): Get self-signed certificate. Implements tls.Config.GetCertificate to provide an easy way to start an HTTPS server with self-signed certificate.  Example_main demonstrates usage of gssc package.
Keywords: golang-http|ssl