Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertificate ¶ added in v0.2.0
func LoadCertificate(keyFile, certFile, domain string) (tls.Certificate, error)
LoadCertificate loads a certificate given a private key and certificate PEM files. Only in case the associated domain is localhost and no files are specified a self signed certificate will be automatically generated.
func RandomBytes ¶
RandomBytes generates a random bytes slice of length 'len'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.