$filePath = 'at2.pfx';
pkcs12 = file_get_contents($filePath);
openssl_pkcs12_read($pkcs12, $certs, 'pfx证书的密码');
$certs; // 中存放就是私钥和证书
PHP下读取pfx中的私钥证书
Copyright © 2015 Powered by MWeb, Theme used GitHub CSS.
$filePath = 'at2.pfx';
pkcs12 = file_get_contents($filePath);
openssl_pkcs12_read($pkcs12, $certs, 'pfx证书的密码');
$certs; // 中存放就是私钥和证书
Copyright © 2015 Powered by MWeb, Theme used GitHub CSS.