Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertPool ¶
LoadCertPool creates a certificate pool and loads any number of certificates from the file system. The certificate file names are assumed to end in `.pem` and if a given name does not have `.pem` it will be added automatically.
func LoadPEMCertPool ¶
LoadPEMCertPool creates a certificate pool and loads any number of certificates from the file system. The certificate names are assumed to end in `.pem`.
func LoadTLSCertificates ¶
func LoadTLSCertificates(paths ...string) ([]tls.Certificate, error)
LoadTLSCertificates loads any number of certificates from the file system with the given path/file name. The certificate itself should be stored in a `.pem` file and the private key in a `.key` file.
func LoadTLSKeyPairs ¶
func LoadTLSKeyPairs(paths ...string) ([]tls.Certificate, error)
LoadTLSKeyPairs loads zero or more certificate key pairs (compatible with mqtt).
Types ¶
This section is empty.