|Internet media type||
|Uniform Type Identifier (UTI)||0|
|Developed by||RSA Security|
PKCS #12 v1.1
(27 October 2012 )
|Type of format||Archive file format|
|Container for||X.509 public key certificates, X.509 private keys, X.509 CRLs, generic data|
|Extended from||Microsoft PFX file format|
In cryptography, PKCS #12 defines an archive file format for storing many cryptography objects as a single file. It is commonly used to bundle a private key with its X.509 certificate or to bundle all the members of a chain of trust.
A PKCS #12 file may be encrypted and signed. The internal storage containers, called "SafeBags", may also be encrypted and signed. A few SafeBags are predefined to store certificates, private keys and CRLs. Another SafeBag is provided to store any other data at individual implementer's choice.
Relationship to PFX file format
Microsoft's "PFX" has received heavy criticism of being one of the most complex cryptographic protocols.
The full PKCS #12 standard is very complex. It enables buckets of complex objects such as PKCS #8 structures, nested deeply. But in practice it is normally used to store just one private key and its associated certificate chain.
PKCS #12 files are usually created using OpenSSL, which only support a single private key from the command line interface. The Java keytool can be used to create multiple "entries" since Java 8, but that may be incompatible with many other systems; as of Java 9 it is the default keystore format. The upcoming version of KMIP will also be able to create PKCS #12 files directly.
GnuTLS's certtool may also be used to create PKCS #12 files including certificates, keys, and CA certificates via --to-pk12. However, beware that for interchangeability with other software, if the sources are in PEM Base64 text, then --outder should also be used.
"PKCS #12: Personal Information Exchange Syntax Standard". RSA Laboratories. Retrieved 2016-02-09.
This standard specifies a portable format for storing or transporting a user's private keys, certificates, miscellaneous secrets, etc.
- "PKCS 12 v1.0: Personal Information Exchange Syntax" (PDF). RSA Laboratories. 1999-06-24. Retrieved 2013-03-14.[permanent dead link]
- Michel I. Gallant (March 2004). "PKCS #12 File Types: Portable Protected Keys in .NET". Microsoft Corporation. Retrieved 2013-03-14.
All Windows operating systems define the extensions .pfx and .p12 as Personal Information Exchange, or PKCS #12, file types.
- "OpenSSL: Documents, pkcs12(1)". OpenSSL Project. 2013-01-17. Retrieved 2017-03-23.
The pkcs12 command allows PKCS#12 files (sometimes referred to as PFX files) to be created and parsed.
- Peter Gutmann (August 2002). "Lessons Learned in Implementing and Deploying Crypto Software" (PDF). The USENIX Association. Retrieved 2013-03-14.
In 1996 Microsoft introduced a new storage format [...] called PFX (Personal Information Exchange) [...] it was later re-released in a cleaned-up form as PKCS #12
- Peter Gutmann (1998-03-12). "PFX - How Not to Design a Crypto Protocol/Standard". Retrieved 2013-03-14.
- "JEP 229: Create PKCS12 Keystores by Default". OpenJDK JEPs. Oracle Corporation. 2014-05-30.
- Ryan, Vincent (2014-05-30). "Bug JDK-8044445: Create PKCS12 Keystores by Default". Java Bugs.
- "PKCS #12 v1.1: Personal Information Exchange Syntax". RSA Laboratories.
- Moriarty, K., ed. (July 2014). PKCS #12: Personal Information Exchange Syntax v1.1. IETF. doi:10.17487/RFC7292. RFC 7292. https://tools.ietf.org/html/rfc7292.
- Overview about PKCS#12 capabilities, usage, implementations, history and future: Ryan Hurst and Yury Strozhevsky (2015-12-02). "The PKCS#12 standard needs another update". Unmitigated Risk Blog. Archived from the original on 2017-03-03.
|This cryptography-related article is a stub. You can help Wikipedia by expanding it.|