mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
89 lines
3.0 KiB
HTML
89 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-pkey-new" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">openssl_pkey_new</h1>
|
||
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_pkey_new</span> — <span class="dc-title">生成一个新的私钥</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.openssl-pkey-new-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>openssl_pkey_new</strong></span>
|
||
([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$configargs</code></span>
|
||
] ) : <span class="type">resource</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
<span class="function"><strong>openssl_pkey_new()</strong></span> 生成一个新的私钥和公钥对。通过 <span class="function"><a href="openssl_pkey_get_public.html" class="function">openssl_pkey_get_public()</a></span> 函数获取该密钥的公共组件。
|
||
</p>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<span class="simpara">
|
||
必须安装有效的 <var class="filename">openssl.cnf</var> 以保证此函数正确运行。参考有关<a href="openssl.installation.html" class="link">安装</a>的说明以获得更多信息。
|
||
</span>
|
||
</p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.openssl-pkey-new-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">configargs</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
你可以使用<code class="parameter">configargs</code>参数微调密钥的生成(比如指定位数)。查看<span class="function"><a href="openssl_csr_new.html" class="function">openssl_csr_new()</a></span>获取更多关于<code class="parameter">configargs</code>的信息。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.openssl-pkey-new-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功,返回pkey的资源标识符,错误则返回 <strong><code>FALSE</code></strong> 。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 changelog" id="refsect1-function.openssl-pkey-new-changelog">
|
||
<h3 class="title">更新日志</h3>
|
||
<table class="doctable informaltable">
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>版本</th>
|
||
<th>说明</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td>7.1.0</td>
|
||
<td>添加了 <code class="parameter">curve_name</code> 配置参数使得可以创建 EC 密钥。</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |