Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCerts ¶
func CreateCerts(org string, hosts []string, notAfter time.Time, server bool, client bool) (serverKey, serverCert, caCert []byte, err error)
CreateCerts creates and returns a CA certificate and certificate and key if server==true, generate these for a server if client==true, generate these for a client can generate for both server and client but at least one must be specified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.