Documentation ¶
Index ¶
- func AddRootCA(CA string) *x509.CertPool
- func AppendCertificate(config *tls.Config, crt, key string) error
- func CheckCertificate(crt string)
- func GenerateUserCert(crt, key, username string) (*tls.Certificate, error)
- func SetupClientTLS(tlstype, CA, crt, key string) (*tls.Config, error)
- func SetupClientTLSWithCA(CA, crt, key string) (*tls.Config, error)
- func SetupServerTLS(tlstype, CA, crt, key string) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCertificate ¶
AppendCertificate adds a certificate to a TLS Config
func CheckCertificate ¶
func CheckCertificate(crt string)
CheckCertificate loads and dumps a certificate file
func GenerateUserCert ¶
func GenerateUserCert(crt, key, username string) (*tls.Certificate, error)
GenerateUserCert builds a certificate from a parent cert
func SetupClientTLS ¶
SetupClientTLS does basic TLS credential setup
func SetupClientTLSWithCA ¶
SetupClientTLSWithCA does TLS credential setup with CA & certs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.