<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.openssl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.openssl-x509-export-to-file.php',
    1 => 'openssl_x509_export_to_file',
    2 => 'Экспортирует сертификат в файл',
  ),
  'up' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'Функции OpenSSL',
  ),
  'prev' => 
  array (
    0 => 'function.openssl-x509-export.php',
    1 => 'openssl_x509_export',
  ),
  'next' => 
  array (
    0 => 'function.openssl-x509-fingerprint.php',
    1 => 'openssl_x509_fingerprint',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/openssl/functions/openssl-x509-export-to-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openssl_x509_export_to_file</span> &mdash; <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"><span class="type"><a href="class.opensslcertificate.php" class="type OpenSSLCertificate">OpenSSLCertificate</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$certificate</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$output_filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$no_text</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>openssl_x509_export_to_file()</strong></span> сохраняет сертификат
   <code class="parameter">certificate</code> в файл
   <code class="parameter">output_filename</code> в виде строки в формате <abbr title="Privacy-Enhanced Mail">PEM</abbr>.
  </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">certificate</code></dt>
<dd>
 <p class="para">
  Для списка корректных значений смотрите <a href="openssl.certparams.php" class="link">Параметры ключей или сертификатов</a>.
 </p>
</dd>

    
     <dt><code class="parameter">output_filename</code></dt>
     <dd>
      <p class="para">
       Путь к файлу.
      </p>
     </dd>
    
    
     <dt><code class="parameter">no_text</code></dt>
     <dd>
      <p class="para">
Необязательный параметр <code class="parameter">notext</code> влияет на детализацию сообщений вывода; если он установлен в <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>,
то в вывод добавляется дополнительная человекочитаемая информация. Значением по умолчанию
<code class="parameter">notext</code> является <strong><code><a href="reserved.constants.php#constant.true">true</a></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><a href="reserved.constants.php#constant.true">true</a></code></strong>, если выполнилась успешно, или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если возникла ошибка.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.openssl-x509-export-to-file-changelog">
  <h3 class="title">Список изменений</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версия</th>
      <th>Описание</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">certificate</code> теперь принимает экземпляр <span class="classname"><a href="class.opensslcertificate.php" class="classname">OpenSSLCertificate</a></span>;
       ранее принимался ресурс (<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>) типа <code class="literal">OpenSSL X.509</code>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><?php manual_footer($setup); ?>