function.openssl-pkey-export.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 132 行

HTML
132
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Gets an exportable representation of a key into a string</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-pkey-export-to-file.html">openssl_pkey_export_to_file</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-free.html">openssl_pkey_free</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-pkey-export" class="refentry"> <div class="refnamediv">  <h1 class="refname">openssl_pkey_export</h1>  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">openssl_pkey_export</span> &mdash; <span class="dc-title">Gets an exportable representation of a key into a string</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>openssl_pkey_export</b></b></span>    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$key</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter reference">&$out</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$passphrase</tt></span>   [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$configargs</tt></span>  ]] )</div>  <p class="para rdfs-comment">   <b>openssl_pkey_export()</b> exports   <i><tt class="parameter">key</tt></i> as a PEM encoded string and stores it into   <i><tt class="parameter">out</tt></i> (which is passed by reference).  </p>  <blockquote><p><b class="note">Note</b>:  <span class="simpara">  You need to have a valid <var class="filename">openssl.cnf</var> installed for  this function to operate correctly.  See the notes under <a href="openssl.installation.html" class="link">the installation  section</a> for more information. </span></p></blockquote> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">key</tt></i></span>     <dd>      <p class="para">      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">out</tt></i></span>     <dd>      <p class="para">      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">passphrase</tt></i></span>     <dd>      <p class="para">       The key is optionally protected by <i><tt class="parameter">passphrase</tt></i>.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">configargs</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">configargs</tt></i> can be used to fine-tune the export       process by specifying and/or overriding options for the openssl       configuration file.  See <a href="function.openssl-csr-new.html" class="function">openssl_csr_new()</a> for more       information about <i><tt class="parameter">configargs</tt></i>.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-pkey-export-to-file.html">openssl_pkey_export_to_file</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-free.html">openssl_pkey_free</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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?