Versions in this module Expand all Collapse all v1 v1.0.1 Nov 28, 2023 Changes in this version + const CertsCADir + const CertsDir + const DefaultConsoleConfigDir + const EnvCertPassword + const PrivateKeyFile + const PublicCertFile + const TLSCertFile + const TLSKeyFile + var DefaultCertsCADir = &ConfigDir + var DefaultCertsDir = &ConfigDir + var GlobalCertsCADir = DefaultCertsCADir + var GlobalCertsDir = DefaultCertsDir + func EnsureCertAndKey(clientCert, clientKey string) error + func GetAllCertificatesAndCAs() (*x509.CertPool, []*x509.Certificate, *xcerts.Manager, error) + func GetTLSConfig() (x509Certs []*x509.Certificate, manager *xcerts.Manager, err error) + func LoadX509KeyPair(certFile, keyFile string) (tls.Certificate, error) + func MkdirAllIgnorePerm(path string) error + func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) + type ConfigDir struct + Path string + func NewConfigDirFromCtx(ctx *cli.Context, option string, getDefaultDir func() string) (*ConfigDir, bool, error) + func (dir *ConfigDir) Get() string