(PHP 5 >= 5.2.2, PHP 7, PHP 8)
openssl_pkcs12_export — 将 PKCS#12 兼容证书存储文件导出到变量
$certificate,&$output,$private_key,$passphrase,$options = []
   openssl_pkcs12_export() 以 PKCS#12 文件格式将 certificate 导入到名为 output 的字符串变量中。
  
| 版本 | 说明 | 
|---|---|
| 8.0.0 | 
       certificate 现在接受 OpenSSLCertificate
       实例;之前接受类型 OpenSSL X.509 CSR 的 resource。
       | 
     
| 8.0.0 | 
       private_key 现在接受 OpenSSLAsymmetricKey
       或 OpenSSLCertificate 实例;之前接受类型 OpenSSL key
       或 OpenSSL X.509 的 resource。
       |