Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertificate ¶
func LoadCertificate(keyFile, certFile, domain string) (tls.Certificate, error)
LoadCertificate loads a certificate given a private key and certificate PEM files. A self signed certificate will be automatically generated if domain is localhost and no files are specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.