Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewCA = newCA
NewCA generates a CA certificate/key pair suitable for signing server keys for an environment with the given name. wrapper arount utils/cert#NewCA
View Source
var NewLeafKeyBits = 2048
NewLeafKeyBits is the number of bits used for the cert.NewLeaf call.
Functions ¶
func NewDefaultServer ¶
func NewDefaultServer(caCertPEM, caKeyPEM string, hostnames []string) (certPEM, keyPEM string, err error)
NewDefaultServer generates a certificate/key pair suitable for use by a server, with an expiry time of 10 years.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.