Convert SSL certificate into PFX format

To convert SSL certficiate into PFX format, run

openssl pkcs12 -export -out certificate.pfx -inkey private-key.key -in certificate.crt -certfile ca-certificate.crt

Example for SSL from namecheap/ssls

openssl pkcs12 -export -out certificate.pfx -inkey serverok_in_key.txt -in serverok.in/serverok.in.crt -certfile serverok.in/serverok.in.ca-bundle

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *