Versions in this module Expand all Collapse all v0 v0.0.1 Mar 24, 2020 Changes in this version + var MultiCertFormatErr = errors.New("multi cert format error") + var UnexpectCertFormatErr = errors.New("unexpect cert format error") + func Certificate(cert interface{}, key interface{}) (*tls.Certificate, error) + func MustCertificate(cert interface{}, key interface{}) *tls.Certificate + func MustRootCAsBytes(rootCAs []interface{}) *x509.CertPool + func MustTlsConfig(options ...Option) *tls.Config + func RootCAsBytes(rootCAs []interface{}) (*x509.CertPool, error) + func TlsConfig(options ...Option) (*tls.Config, error) + type Option func(*tlsWith) + func MustCerts(rootCa string, certFile string, keyFile string) []Option + func WithCertificates(certificates []tls.Certificate) Option + func WithClientAuth(clientauth tls.ClientAuthType) Option + func WithClientCAs(clientcas *x509.CertPool) Option + func WithInsecureSkipVerify(insecureskipverify bool) Option + func WithRootCAs(rootcas *x509.CertPool) Option