README ¶ Certificates The keys and certificates listed in this directory are for only test purpose. If you would like to use this library in production, please generate and use your own key and certificate. Let's Encrypt provides this service for free. Let's Encrypt: https://letsencrypt.org/ Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func LoadCACerts(certsFilename string) (*x509.CertPool, error) func LoadClientCerts(rootCert, clientCert, clientKey, serverName string) (*tls.Config, error) func LoadServerCerts(rootCert, serverCert, serverKey string) (*tls.Config, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadCACerts ¶ func LoadCACerts(certsFilename string) (*x509.CertPool, error) LoadCACerts loads the CA certificates (root certs). func LoadClientCerts ¶ func LoadClientCerts(rootCert, clientCert, clientKey, serverName string) (*tls.Config, error) LoadClientCerts loads the client certificates. func LoadServerCerts ¶ func LoadServerCerts(rootCert, serverCert, serverKey string) (*tls.Config, error) LoadServerCerts loads the server certificates. Types ¶ This section is empty. Source Files ¶ View all Source files loader.go Click to show internal directories. Click to hide internal directories.