Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + var ErrNoBlocks = errors.New("no PEM blocks") + func EncodeCertificate(cert *x509.Certificate) []byte + func EncodeCertificates(certs []*x509.Certificate) []byte + func EncodeECPrivateKey(privateKey *ecdsa.PrivateKey) ([]byte, error) + func EncodePKCS8PrivateKey(privateKey interface{}) ([]byte, error) + func EncodeRSAPrivateKey(privateKey *rsa.PrivateKey) ([]byte, error) + func LoadCertificate(path string) (*x509.Certificate, error) + func LoadCertificateRequest(path string) (*x509.CertificateRequest, error) + func LoadCertificates(path string) (certs []*x509.Certificate, err error) + func LoadECPrivateKey(path string) (*ecdsa.PrivateKey, error) + func LoadPrivateKey(path string) (crypto.PrivateKey, error) + func LoadPublicKey(path string) (crypto.PublicKey, error) + func LoadRSAPrivateKey(path string) (*rsa.PrivateKey, error) + func LoadSigner(path string) (crypto.Signer, error) + func ParseCertificate(pemBytes []byte) (*x509.Certificate, error) + func ParseCertificateRequest(pemBytes []byte) (*x509.CertificateRequest, error) + func ParseCertificates(pemBytes []byte) (certs []*x509.Certificate, err error) + func ParseECPrivateKey(pemBytes []byte) (*ecdsa.PrivateKey, error) + func ParsePrivateKey(pemBytes []byte) (crypto.PrivateKey, error) + func ParsePublicKey(pemBytes []byte) (crypto.PublicKey, error) + func ParseRSAPrivateKey(pemBytes []byte) (*rsa.PrivateKey, error) + func ParseSigner(pemBytes []byte) (crypto.Signer, error) + type Block struct + Headers map[string]string + Object interface{} + Type string + func LoadBlocks(path string) ([]Block, error) + func ParseBlocks(pemBytes []byte) ([]Block, error)