Versions in this module Expand all Collapse all v0 v0.0.2 Aug 18, 2023 Changes in this version + const DefaultPassword + var ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding") + var ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect") + func Decode(pfxData []byte, password string, expectedItems int) (privateKey interface{}, certificate *x509.Certificate, err error) + func DecodeChain(pfxData []byte, password string, expectedItems int) (privateKey interface{}, certificate *x509.Certificate, ...) + func DecodeTrustStore(pfxData []byte, password string) (certs []*x509.Certificate, err error) + func Encode(rand io.Reader, privateKey interface{}, certificate *x509.Certificate, ...) (pfxData []byte, err error) + func EncodeTrustStore(rand io.Reader, certs []*x509.Certificate, password string) (pfxData []byte, err error) + func EncodeTrustStoreEntries(rand io.Reader, entries []TrustStoreEntry, password string) (pfxData []byte, err error) + func ToPEM(pfxData []byte, password string, expectedItems int) ([]*pem.Block, error) + type NotImplementedError string + func (e NotImplementedError) Error() string + type TrustStoreEntry struct + Cert *x509.Certificate + FriendlyName string