<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.openssl-spki-export.php',
    1 => 'openssl_spki_export',
    2 => 'Exports a valid PEM formatted public key signed public key and challenge',
  ),
  'up' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'OpenSSL İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.openssl-sign.php',
    1 => 'openssl_sign',
  ),
  'next' => 
  array (
    0 => 'function.openssl-spki-export-challenge.php',
    1 => 'openssl_spki_export_challenge',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/openssl/functions/openssl-spki-export.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openssl-spki-export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_spki_export</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.6.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openssl_spki_export</span> &mdash; <span class="dc-title">Exports a valid <abbr title="Privacy-Enhanced Mail">PEM</abbr> formatted public key signed public key and challenge</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openssl-spki-export-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_spki_export</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$spki</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
    Exports <abbr title="Privacy-Enhanced Mail">PEM</abbr> formatted public key from encoded signed public key and challenge
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-spki-export-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
    
     <dt><code class="parameter">spki</code></dt>
     <dd>
      <p class="para">
        Expects a valid signed public key and challenge 
      </p>
     </dd>
    
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-spki-export-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Returns the associated <abbr title="Privacy-Enhanced Mail">PEM</abbr> formatted public key or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


  <div class="refsect1 errors" id="refsect1-function.openssl-spki-export-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   Emits an <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> level error if an invalid argument
   is passed via the <code class="parameter">spki</code> parameter.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.openssl-spki-export-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="openssl_spki_export.example.basic">
   <p><strong>Örnek 1 <span class="function"><strong>openssl_spki_export()</strong></span> example</strong></p>
   <div class="example-contents"><p>
      Extracts the associated <abbr title="Privacy-Enhanced Mail">PEM</abbr> formatted public key or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> on failure.
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$pkey </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_pkey_new</span><span style="color: #007700">(</span><span style="color: #DD0000">'secret password'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$spkac </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_spki_new</span><span style="color: #007700">(</span><span style="color: #0000BB">$pkey</span><span style="color: #007700">, </span><span style="color: #DD0000">'challenge string'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$pubKey </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_spki_export</span><span style="color: #007700">(</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/SPKAC=/'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </span><span style="color: #0000BB">$spkac</span><span style="color: #007700">));<br /><br />if (</span><span style="color: #0000BB">$pubKey</span><span style="color: #007700">) {<br />    echo </span><span style="color: #0000BB">$pubKey</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
  <div class="example" id="openssl_spki_export.example.keygen">
   <p><strong>Örnek 2 <span class="function"><strong>openssl_spki_export()</strong></span> example from &lt;keygen&gt;</strong></p>
   <div class="example-contents"><p>
      Extracts the associated <abbr title="Privacy-Enhanced Mail">PEM</abbr> formatted public key issued from the &lt;keygen&gt; element
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$spkac </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_spki_export</span><span style="color: #007700">(</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/SPKAC=/'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </span><span style="color: #0000BB">$_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'spkac'</span><span style="color: #007700">]));<br />if (</span><span style="color: #0000BB">$spkac </span><span style="color: #007700">!= </span><span style="color: #0000BB">NULL</span><span style="color: #007700">) {<br />    echo </span><span style="color: #0000BB">$spkac</span><span style="color: #007700">;<br />} else {<br />    echo </span><span style="color: #DD0000">"Extraction of pub key failed"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;keygen name="spkac" challenge="challenge string" keytype="RSA"&gt;</span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.openssl-spki-export-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.openssl-spki-new.php" class="function" rel="rdfs-seeAlso">openssl_spki_new()</a> - Generate a new signed public key and challenge</span></li>
    <li><span class="function"><a href="function.openssl-spki-verify.php" class="function" rel="rdfs-seeAlso">openssl_spki_verify()</a> - Verifies a signed public key and challenge</span></li>
    <li><span class="function"><a href="function.openssl-spki-export-challenge.php" class="function" rel="rdfs-seeAlso">openssl_spki_export_challenge()</a> - Exports the challenge associated with a signed public key and challenge</span></li>
    <li><span class="function"><a href="function.openssl-get-md-methods.php" class="function" rel="rdfs-seeAlso">openssl_get_md_methods()</a> - Kullanılabilecek &ouml;zet y&ouml;ntemlerini d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.openssl-csr-new.php" class="function" rel="rdfs-seeAlso">openssl_csr_new()</a> - Bir sertifika imzalama isteği (CSR) &uuml;retir</span></li>
    <li><span class="function"><a href="function.openssl-csr-sign.php" class="function" rel="rdfs-seeAlso">openssl_csr_sign()</a> - Bir CSR'yi başka bir sertifika
   (veya kendisi) ile imzalayıp bir sertifika &uuml;retir</span></li>
   </ul>
  </p>
 </div>


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