Retrieve expiry date of Provisioning Profile Certificate from .ipa

$ unzip -q MyApp.ipa
$ codesign -d --extract-certificates Payload/*.app
$ openssl x509 -inform DER -in codesign0 -noout -nameopt -oneline -dates

Output:

The expiry date show as the value of notAfter:

notBefore=May 21 02:04:15 2008 GMT
notAfter=May 21 02:04:15 2020 GMT

References:

Last updated