How to convert .p12 to .crt file?

user3130007 picture user3130007 · Oct 25, 2018 · Viewed 37.3k times · Source

Can anyone tell me the correct way/command to extract/convert the certificate .crt file from a .p12 file? After I searched. I found the way how to convert .pem to .crt. but not found .p12 to .crt.

Answer

crack_iT picture crack_iT · Oct 25, 2018

Try with given command

openssl pkcs12 -in filename.p12 -clcerts -nokeys -out filename.crt