openssl_pkcs12_read(file_get_contents("xxx.pfx"), $cert, "123456");
var_dump($cert);
出来的结果,private部分是私钥