(PHP 5 >= 5.6.0, PHP 7)
openssl_get_cert_locations — 锟斤拷锟斤拷锟斤拷锟矫碉拷证锟斤拷位锟斤拷
openssl_get_cert_locations() 锟斤拷锟斤拷一锟斤拷锟斤拷锟介,锟斤拷锟叫帮拷锟斤拷要锟斤拷锟斤拷SSL证锟斤拷目锟斤拷锟街わ拷锟轿伙拷玫锟斤拷锟较拷锟�
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
锟斤拷锟斤拷一锟斤拷锟斤拷锟叫匡拷锟斤拷证锟斤拷位锟斤拷锟斤拷息锟斤拷锟斤拷锟介。
Example #1 openssl_get_cert_locations() 锟斤拷锟斤拷
<?php
var_dump(openssl_get_cert_locations());
?>
锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�
array(8) { ["default_cert_file"]=> string(21) "/usr/lib/ssl/cert.pem" ["default_cert_file_env"]=> string(13) "SSL_CERT_FILE" ["default_cert_dir"]=> string(18) "/usr/lib/ssl/certs" ["default_cert_dir_env"]=> string(12) "SSL_CERT_DIR" ["default_private_dir"]=> string(20) "/usr/lib/ssl/private" ["default_default_cert_area"]=> string(12) "/usr/lib/ssl" ["ini_cafile"]=> string(0) "" ["ini_capath"]=> string(0) "" }