array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.openssl-get-cert-locations.php', 1 => 'openssl_get_cert_locations', 2 => 'Retrieve the available certificate locations', ), 'up' => array ( 0 => 'ref.openssl.php', 1 => 'Функції OpenSSL', ), 'prev' => array ( 0 => 'function.openssl-free-key.php', 1 => 'openssl_free_key', ), 'next' => array ( 0 => 'function.openssl-get-cipher-methods.php', 1 => 'openssl_get_cipher_methods', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/openssl/functions/openssl-get-cert-locations.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
openssl_get_cert_locations — Retrieve the available certificate locations
openssl_get_cert_locations() returns an array with information about the available certificate locations that will be searched for SSL certificates.
У цієї функції немає параметрів.
Returns an array with the available certificate locations.
Приклад #1 openssl_get_cert_locations() example
<?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) ""
}