I have an iOS certificate.p12 file, is it possible to check the content of .P12 file (iOS certificate + public key) and be sure that it is a correct Distribution certificate and not (development or wildcard), I know it is possible via Apple portal or with installing the certificate on the keychain but is there a way to check the content of this file and be sure that it is a distribution Certificate with out apple portal check and without installing the file?
Thanks in advance!
Update:
what I want is to check the customers distribution certificate.p12, instead of installing their certificate in my keychain each time, I want to have a mechanism to check the content of certificate and let me know that this certificate is not expired and also it is distribution certificate, I want to know if it is possible or not?
1.Expiration Date
- It it is Distribution or not
to check the expiration date : first extract .p12 to .pem :
openssl pkcs12 -in certificate.p12 -out certificate.pem -nodes
then get the expiration date :
cat certificate.pem | openssl x509 -noout -enddate