Overview of go-pkcs12 capabilities and limitations
masterThe pkcs12 package provides functionality for handling PKCS#12 (P12/PFX) files.
Primary Use Cases
- Decoding: Extracting DER-encoded P12/PFX files for use with the standard
crypto/tlspackage. - Encoding: Creating P12/PFX files for compatibility with legacy applications that do not support newer certificate formats.
Important Constraints and Warnings
- Encoding Support: This package supports only DER-encoded PKCS#12 files. It does not support BER encoding because the underlying
encoding/asn1package is limited to DER. - Security Warning: PKCS#12 uses weak encryption primitives. It SHOULD NOT be used for new applications where modern security standards can be applied.
- Origin: This package is a fork of the frozen
golang.org/x/crypto/pkcs12and is based on the implementation details from RFC 7292.