Documentation ¶
Index ¶
- func AddCertificatesToPool(pool *x509.CertPool, extraCertificateLocation string) error
- func AppendExtraCaCert(extraCertificateLocation string, certPem []byte) []byte
- func GetAllCerts(pemData []byte) ([]*x509.Certificate, error)
- func GetExtraCaCert(extraCertificateLocation string) ([]byte, []*x509.Certificate, error)
- func MakeSelfSignedCert(certName string, dnsNames []string, debugLogger *log.Logger) (certPEMBlock []byte, keyPEMBlock []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCertificatesToPool ¶
Get global Certificate pool including x509.SystemCertPool() + extraCertificateLocation
func AppendExtraCaCert ¶
Append all certificates specified via extraCertificateLocation to the given PEM formatted byte slice
func GetAllCerts ¶
func GetAllCerts(pemData []byte) ([]*x509.Certificate, error)
Decode all Certifactes given in the PEM formatted input slice and return the Certificates as a list. It returns an error if any of the content is not a Certificate.
func GetExtraCaCert ¶
func GetExtraCaCert(extraCertificateLocation string) ([]byte, []*x509.Certificate, error)
Returns the Certificates specified via extraCertificateLocation as a PEM formatted byte slice and as a list of certificates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.