User Tools

Site Tools


certificates:conversions:convert_.pem_to_.pkcs12

Certificates - Conversions - Convert .pem to .pkcs12

To convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12):

openssl pkcs12 -export -out cert..pkcs12 -inkey privateKey.key -in cert.crt -certfile CACert.crt

With an intermediate certificate

You need to concatenate all the PEM files into one, then convert it to PKCS#12:

cat certificate.crt intermediate.crt > bundle.crt
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in bundle.crt
certificates/conversions/convert_.pem_to_.pkcs12.txt · Last modified: 2020/07/15 10:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki