Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCACert ¶
func GenerateCACert(sslPath string)
GenerateCACert generates and saves a CA cert to cacert.pem and cacert.key
func GenerateClientCert ¶
func GenerateClientCert(clientName, sslPath string) tls.Certificate
GenerateClientCert generates a client cert against a given CA
func GenerateServerCert ¶
func GenerateServerCert(host, sslPath string) tls.Certificate
GenerateServerCert generates a server certificate against a given CA cert
func SaveClientCert ¶
func SaveClientCert(hostname, sslPath string)
SaveClientCert generates and saves a client cert to disk
func SaveServerCert ¶
func SaveServerCert(host, sslPath string)
SaveServerCert generates and saves a server cert
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.