Versions in this module Expand all Collapse all v2 v2.1.0 Nov 19, 2020 v2.0.0 Oct 14, 2020 Changes in this version + func PrintPeerCertificates(conn net.Conn) + type ClientConfig struct + InsecureSkipVerify bool + func (m *ClientConfig) GetTlsConfig() (conf *tls.Config, err error) + type Config struct + CaCertificate string + CaCertificateFile string + Certificate string + CertificateFile string + PrivateKey string + PrivateKeyFile string + PrivateKeyPassword *string + PrivateKeyPasswordProgram string + func (m *Config) GetCaCertificates() ([]byte, error) + func (m *Config) GetCertificate() ([]byte, error) + func (m *Config) GetPrivateKey() (privateKeyPemBlock []byte, err error) + func (m *Config) GetPrivateKeyPassword() ([]byte, error) + func (m *Config) GetTlsConfig() (*tls.Config, error) + func (m *Config) GetX509KeyPair() (*tls.Certificate, error) + type ConfigGetter interface + CertManager func() TlsConfig + type ServerConfig struct + RequireClientCert bool + func (m *ServerConfig) GetTlsConfig() (conf *tls.Config, err error) + type TlsConfig interface + GetTlsConfig func() (*tls.Config, error)