使用PHP从p12证书文件获取信息
答
我认为这会对你有所帮助。
$certs = array();
$pkcs12 = file_get_contents("pkcs12file.pem");
openssl_pkcs12_read($pkcs12, $certs, "");
print_r($certs);
还有更多的文档中:PHP.net doc
看看这里:http://php.net/manual/en/function.openssl-pkcs12-read.php –