uTools-Manuals/docs/php/openssl_get_cert_locations.html
2019-04-08 23:22:26 +08:00

81 lines
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>检索可用的证书位置</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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">检索可用的证书位置</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.openssl-get-cert-locations-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>openssl_get_cert_locations</strong></span>
( <span class="methodparam">void</span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>openssl_get_cert_locations()</strong></span> 返回一个数组其中包含要搜索SSL证书的可用证书位置的信息。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.openssl-get-cert-locations-parameters">
<h3 class="title">参数</h3>
<p class="para">此函数没有参数。</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.openssl-get-cert-locations-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回一个带有可用证书位置信息的数组。
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.openssl-get-cert-locations-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-933">
<p><strong>Example #1 <span class="function"><strong>openssl_get_cert_locations()</strong></span> 范例</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><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>
</pre></div>
</div>
<div class="example-contents"><p>以上例程会输出:</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></div></div></body></html>