Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 5470

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!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 &gt;= 5.6.0, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_get_cert_locations</span> &mdash; <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">&lt;?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">?&gt;</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) {
  [&quot;default_cert_file&quot;]=&gt;
  string(21) &quot;/usr/lib/ssl/cert.pem&quot;
  [&quot;default_cert_file_env&quot;]=&gt;
  string(13) &quot;SSL_CERT_FILE&quot;
  [&quot;default_cert_dir&quot;]=&gt;
  string(18) &quot;/usr/lib/ssl/certs&quot;
  [&quot;default_cert_dir_env&quot;]=&gt;
  string(12) &quot;SSL_CERT_DIR&quot;
  [&quot;default_private_dir&quot;]=&gt;
  string(20) &quot;/usr/lib/ssl/private&quot;
  [&quot;default_default_cert_area&quot;]=&gt;
  string(12) &quot;/usr/lib/ssl&quot;
  [&quot;ini_cafile&quot;]=&gt;
  string(0) &quot;&quot;
  [&quot;ini_capath&quot;]=&gt;
  string(0) &quot;&quot;
}
</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>