Create a PKCS#12 (.p12) file using OpenSSL

Scenario: I wanted to create PKCS12 file to import into a Sonicwall Firewall (FW

You'll need. 

– Certificate from CA (my.crt)
– Private key (my.key)
– CA Bundle (myCA.crt)
– The password for the private key

From a UNIX based server pop all of the required files into a specific directory. 

# openssl pkcs12 -export -in my.crt -inkey my.key -out my.p12 -certfile myCA.crt

You will then be prompted to enter the password for the private key. Once completed the my.p12 will be created.

Once you have the .p12 file copy it to your local machine for upload to the Sonicwall.

Go to System -> Certificates -> Import


Once imported you should see that it is validated: