Extract the pubic key from a p12

Extract just the public key from a p12

$ openssl pkcs12 -in my.p12 -out my.crt -clcerts -nokeys
Enter Import Password:
MAC verified OK




Extract the public key from a p12