This is for those who want to create an PKCS#12 file using OpenSSL.
Step 1 (Only if you don’t have your private key and certificate files. If you have it already, jump to step 2) Create your certificate and key
Open a terminal, and type the following command:
openssl req -new -out cert.pem -x509
Step 2) Create the PKCS#12 file.
Open a terminal, and type the following command:
openssl pkcs12 -export -in cert.pem \ -inkey privkey.pem -out pkcs12file.p12 -name "certificate1"
And that’s it. After two (or one) steps, you will have a PKCS#12 file named pkcs12file.p12.
Popularity: 11% [?]



