How to Convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12) using openssl command?
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes
Check a Certificate Signing Request (CSR) $openssl req -text -noout -verify -in CSR.csr Check a private key $openssl rsa -in privateKey.key -check Check a certificate $openssl x509 -in certificate.crt -text -noout Check a PKCS#12 file (.pfx or .p12) $openssl pkcs12 -info -in keyStore.p12