openssl_get_cert_locations
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
openssl_get_cert_locations — 사용 가능한 인증서 위치 검색
설명
openssl_get_cert_locations(): array
openssl_get_cert_locations()는 SSL 인증서를 검색할 사용 가능한 인증서 위치에 대한 정보가 포함된 배열을 반환합니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
사용 가능한 인증서 위치가 있는 배열을 반환합니다.
Examples
예제 #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) "" }