security

package
v0.0.0-...-bac74aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2017 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertPool

func LoadCertPool(paths ...string) (*x509.CertPool, error)

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

func LoadPEMCertPool(paths ...string) (*x509.CertPool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL