Versions in this module Expand all Collapse all v1 v1.2.2 Sep 5, 2018 Changes in this version + func SupportsKeychain() bool + func SupportsPKCS11() bool + type Certificate interface + GetCertificate func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) + GetClientCertificate func(certInfo *tls.CertificateRequestInfo) (*tls.Certificate, error) + Reload func() error + func CertificateFromKeychainIdentity(commonName string) (Certificate, error) + func CertificateFromKeystore(keystorePath, keystorePassword string) (Certificate, error) + func CertificateFromPEMFiles(certificatePath, keyPath string) (Certificate, error) + func CertificateFromPKCS11Module(certificatePath, modulePath, tokenLabel, pin string) (Certificate, error) + type Dialer interface + Dial func(network, address string) (net.Conn, error) + func DialerWithCertificate(cert Certificate, config *tls.Config, timeout time.Duration, dialer Dialer) Dialer