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.
Try with given command
openssl pkcs12 -in filename.p12 -clcerts -nokeys -out filename.crt