io non sono sicuro se è utile al 100%, ma è possibile utilizzare lo strumento da riga di comando dalla libreria OpenSSL nel modo seguente
openssl pkcs12 -info -in mycert.p12 -passin pass:MyCertPassPhrase
questo produrrà l'output è possibile analizzare
MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
Bag Attributes
friendlyName: Apple Production IOS Push Services: com.mybundle.domain
localKeyID: F2 FZ 5D 00 44 73 F1 64 B8 FF EF 37 82 BC 13 F4 81 6A B2 14
subject=/UID=com.mybundle.domain/CN=Apple Production IOS Push Services: com.mybundle.domain/OU=Q7QX7A5JZ7/C=RU
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
-----BEGIN CERTIFICATE-----
MIIFeTCCBGGgAwIBAgIILW8Tn/Z054IwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
dove com.mybundle.domain è ciò che stai cercando.
Bello, grazie al voto – Dilip
Come lo facciamo in Java, qualche idea? –