⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.openssl-pkey-export-to-file.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!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 file</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-pkcs7-verify.html">openssl_pkcs7_verify</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-export.html">openssl_pkey_export</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-to-file" class="refentry"> <div class="refnamediv">  <h1 class="refname">openssl_pkey_export_to_file</h1>  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">openssl_pkey_export_to_file</span> &mdash; <span class="dc-title">Gets an exportable representation of a key into a file </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_to_file</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">$outfilename</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_to_file()</b> saves an ascii-armoured   (PEM encoded) rendition of <i><tt class="parameter">key</tt></i> into the file named   by <i><tt class="parameter">outfilename</tt></i>.    </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">outfilename</tt></i></span>     <dd>      <p class="para">       Path to the output file.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">passphrase</tt></i></span>     <dd>      <p class="para">       The key can be optionally protected by a       <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-pkcs7-verify.html">openssl_pkcs7_verify</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-export.html">openssl_pkey_export</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -