Created
April 13, 2015 08:11
-
-
Save mpociot/2fdc456b2b6e6f84e12b to your computer and use it in GitHub Desktop.
Get expiration date from provisioning profile certificate data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://packagist.org/packages/phpseclib/phpseclib | |
// composer require "phpseclib/phpseclib": "0.3.10" | |
$certData = base64_decode( OBTAINED_CERTIFICATE_BASE64_STRING_FROM_PLIST ); | |
$issuer = new File_X509(); | |
$cert = $issuer->loadX509( $certData ); | |
$exirationDate = $cert['tbsCertificate']['validity']['notAfter']['utcTime']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment