在PHP中验证APNS服务器证书是否有效

在PHP中验证APNS服务器证书是否有效,php,certificate,apple-push-notifications,Php,Certificate,Apple Push Notifications,如何在PHP中验证APNS服务器证书是否有效 APNS证书是APNS推送证书(来自Apple)和PKCS12格式的私钥的串联。如果我有私钥的密码,我可以从证书中获取信息(如到期日) 我试图: // to read the APNS certificate content $results = array(); $is_success = openssl_pkcs12_read(file_get_contents($cert_path), $results, $password); // then

如何在PHP中验证APNS服务器证书是否有效

APNS证书是APNS推送证书(来自Apple)和PKCS12格式的私钥的串联。如果我有私钥的密码,我可以从证书中获取信息(如到期日)

我试图:

// to read the APNS certificate content
$results = array();
$is_success = openssl_pkcs12_read(file_get_contents($cert_path), $results, $password);
// then $results will contain certificate information
但是如何将APNS推送证书与私钥分开呢