mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
87 lines
3.0 KiB
HTML
87 lines
3.0 KiB
HTML
<!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-x509-export-to-file" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">openssl_x509_export_to_file</h1>
|
||
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_x509_export_to_file</span> — <span class="dc-title">导出证书至文件</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.openssl-x509-export-to-file-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>openssl_x509_export_to_file</strong></span>
|
||
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$x509</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$outfilename</code></span>
|
||
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$notext</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
|
||
] ) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
<span class="function"><strong>openssl_x509_export_to_file()</strong></span> 将
|
||
<code class="parameter">x509</code> 以PEM编码的格式保存到名为 <code class="parameter">outfilename</code> 的文件中。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.openssl-x509-export-to-file-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">x509</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
参见<a href="openssl.certparams.html" class="link">密钥/证书参数</a>以获取有效值列表。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">outfilename</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
输出文件的路径。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">notext</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
可选参数 <code class="parameter">notext</code> 影响输出的冗余度。如果设为
|
||
<strong><code>FALSE</code></strong>,输出内容将包含附加的人类可读信息。<code class="parameter">notext</code> 的缺省值为 <strong><code>TRUE</code></strong>。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.openssl-x509-export-to-file-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |