Retrieve certificate expiration date from an .ipa file?
Do the following:
unzip -q MyApp.ipa$ codesign -d --extract-certificates Payload/*.app$ openssl x509 -inform DER -in codesign0 -noout -nameopt -oneline -dates
After doing the above, you will get output with:
notAfter=Aug 4 16:08:00 2017 GMT
This is the certificate expiration date.