男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

openssl_pkcs12_read

(PHP 5 >= 5.2.2, PHP 7, PHP 8)

openssl_pkcs12_read將 PKCS#12 證書(shū)存儲區解析到數組中

說(shuō)明

openssl_pkcs12_read(string $pkcs12, array &$certs, string $pass): bool

openssl_pkcs12_read()pkcs12提供的PKCS#12證書(shū)存儲區解析到以certs命名的變量中。

參數

pkcs12

證書(shū)存儲內容,而不是它的文件名。

certs

成功,將保存證書(shū)存儲數據

pass

用來(lái)解鎖 PKCS#12 文件的解密密碼

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

范例

示例 #1 openssl_pkcs12_read() 范例

<?php
if (!$cert_store file_get_contents("/certs/file.p12")) {
    echo 
"Error: Unable to read the cert file\n";
    exit;
}

if (
openssl_pkcs12_read($cert_store$cert_info"my_secret_pass")) {
    echo 
"Certificate Information\n";
    
print_r($cert_info);
} else {
    echo 
"Error: Unable to read the cert store.\n";
    exit;
}
?>
男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站