How to make a PFX from a certificate and key
Drop the certificate, its private key and the CA bundle, type a password and download the .pfx. The key is checked against the certificate and the chain is put in order before the file is made, all in your browser.
Add the files
The certificate your certificate authority sent, the private key made with the request, and the CA bundle. Several files at once, one PEM holding all of them, or PEM text pasted in.
Choose a password
The PFX needs it when it is imported. The friendly name is what Windows and IIS show in their certificate lists.
Download and import
Import the .pfx in IIS under Server Certificates, in Windows with the Certificate Import Wizard, in Azure under Certificates, or into a Java keystore with keytool.
AES or TripleDES
The PFX is encrypted with AES-256, as OpenSSL 3 writes it. Current Windows, macOS, Java and OpenSSL open it. Windows Server 2016 and older, Windows 10 before version 1709 and Azure App Service need TripleDES: switch it on, or they report a wrong password.
Specs
| Reads | PEM, DER, CRT, CER, KEY and P7B; several files or one combined PEM |
|---|---|
| Keys | RSA and EC, as PKCS#8, PKCS#1 or SEC1, not password-protected |
| Checks | The key belongs to the certificate; the chain is ordered and each link’s signature checked |
| AES | PBES2 with PBKDF2-HMAC-SHA-256, AES-256-CBC, HMAC-SHA-256 MAC |
| TripleDES | PBE-SHA1-3DES for the key and certificates, SHA-1 MAC |
| Price | Free, no account |
Questions
Is my private key uploaded?
No. The certificate, the key and the password are read by your browser and the PFX is made on your device. Nothing is sent anywhere.
Which files do I need?
The certificate (.crt, .cer or .pem), the private key made with its request (.key or .pem), and for most servers the CA bundle your certificate authority sent (ca-bundle, chain or intermediate file). One PEM file holding all of them works too.
Windows says the password is wrong. Why?
Windows Server 2016 and older, and Windows 10 before version 1709, can’t open a PFX encrypted with AES and report a wrong password instead. Switch on TripleDES encryption and make the file again. Azure App Service also asks for TripleDES.
How do I make a PFX with OpenSSL?
openssl pkcs12 -export -in certificate.crt -inkey private.key -certfile ca-bundle.crt -out certificate.pfx. Add -legacy for TripleDES. This page writes the same file without a command line.
My private key has a password. Can I use it?
Not yet: unlock it first, for example with openssl pkey -in private.key -out plain.key, then add plain.key here.