<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Retrieve the available certificate locations</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-free-key.html">openssl_free_key</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-get-cipher-methods.html">openssl_get_cipher_methods</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.openssl-get-cert-locations" class="refentry"> <div class="refnamediv"> <h1 class="refname">openssl_get_cert_locations</h1> <p class="verinfo">(PHP 5 >= 5.6.0, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_get_cert_locations</span> — <span class="dc-title">Retrieve the available certificate locations</span></p> </div> <div class="refsect1 description" id="refsect1-function.openssl-get-cert-locations-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>openssl_get_cert_locations</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> <span class="function"><strong>openssl_get_cert_locations()</strong></span> returns an array with information about the available certificate locations that will be searched for SSL certificates. </p> </div> <div class="refsect1 parameters" id="refsect1-function.openssl-get-cert-locations-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-function.openssl-get-cert-locations-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an array with the available certificate locations. </p> </div> <div class="refsect1 examples" id="refsect1-function.openssl-get-cert-locations-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-968"> <p><strong>Example #1 <span class="function"><strong>openssl_get_cert_locations()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">openssl_get_cert_locations</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> 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) "" } </pre></div> </div> </div> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-free-key.html">openssl_free_key</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-get-cipher-methods.html">openssl_get_cipher_methods</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>