Viewing a Certificate in a PKCS#12 File
This operation cannot be done directly using OpenSSL. You must first copy out the PKCS12 certificate to a PEM file, and then view the certificate in the PEM file.
openssl pkcs12 -in <keystore>.p12 -clcerts -out <afile>.pem