Documentation ¶
Index ¶
- func CreatePemChain(intermedateCAs []*x509.Certificate, cert []byte) ([]byte, error)
- func ParseCertificates(cert *tls.Certificate) ([]*x509.Certificate, error)
- func ParsePemCertificates(pemBlock []byte) ([]*x509.Certificate, error)
- func ParsePemEcdsaPrivateKey(pemBlock []byte) (*ecdsa.PrivateKey, error)
- func ReadPemCertificates(path string) ([]*x509.Certificate, error)
- func ReadPemEcdsaPrivateKey(path string) (*ecdsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePemChain ¶
func CreatePemChain(intermedateCAs []*x509.Certificate, cert []byte) ([]byte, error)
CreatePemChain creates chain of PEM certificates.
func ParseCertificates ¶
func ParseCertificates(cert *tls.Certificate) ([]*x509.Certificate, error)
ParseCertificates parses the CA chain certificates from the DER data.
func ParsePemCertificates ¶
func ParsePemCertificates(pemBlock []byte) ([]*x509.Certificate, error)
ParsePemCertificates parses x509 certificates from PEM format
func ParsePemEcdsaPrivateKey ¶
func ParsePemEcdsaPrivateKey(pemBlock []byte) (*ecdsa.PrivateKey, error)
ParsePemEcdsaPrivateKey parses private key from PEM format
func ReadPemCertificates ¶
func ReadPemCertificates(path string) ([]*x509.Certificate, error)
ReadPemCertificates reads certificates from file in PEM format
func ReadPemEcdsaPrivateKey ¶
func ReadPemEcdsaPrivateKey(path string) (*ecdsa.PrivateKey, error)
ReadPemEcdsaPrivateKey loads private key from file in PEM format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.