<?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-csr-get-subject.php',
    1 => 'openssl_csr_get_subject',
    2 => 'Bir CSR\'nin &ouml;znesini d&ouml;nd&uuml;r&uuml;r',
  ),
  'up' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'OpenSSL İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.openssl-csr-get-public-key.php',
    1 => 'openssl_csr_get_public_key',
  ),
  'next' => 
  array (
    0 => 'function.openssl-csr-new.php',
    1 => 'openssl_csr_new',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/openssl/functions/openssl-csr-get-subject.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openssl-csr-get-subject" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_csr_get_subject</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openssl_csr_get_subject</span> &mdash; <span class="dc-title">Bir <abbr title="Certificate Signing Request">CSR</abbr>&#039;nin öznesini döndürür</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openssl-csr-get-subject-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_csr_get_subject</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.opensslcertificatesigningrequest.php" class="type OpenSSLCertificateSigningRequest">OpenSSLCertificateSigningRequest</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$csr</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$kısa_ad</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>openssl_csr_get_subject()</strong></span> commonName (CN),
   organizationName (O), countryName (C)  vb. alanlar dahil olmak üzere
   <code class="parameter">csr</code>&#039;de kodlanmış konu ayırt edici ad bilgilerini
   döndürür.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-csr-get-subject-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
     
 <dt><code class="parameter">csr</code></dt>
 <dd>
  <p class="para">
   Geçerli değerler <a href="openssl.certparams.php" class="xref">Anahtar/Sertifika Bağımsız değişkenleri</a> sayfasında
   bulunabilir.
  </p>
 </dd>

    
     <dt><code class="parameter">kısa_ad</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">kısa_ad</code> verinin dizi içinde nasıl indisleneceğini
       belirler - <code class="parameter">kısa_ad</code><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> (öntanımlı) ise
       alanlar kısa isimlerle indislenir, aksi takdirde uzun isimler kullanılır.
       Örneğin, commonName için kısa isim CN&#039;dir.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-csr-get-subject-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Konuyu açıklayan ilişkisel bir dizi,  başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.openssl-csr-get-subject-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">csr</code> artık
       <span class="classname"><a href="class.opensslcertificatesigningrequest.php" class="classname">OpenSSLCertificateSigningRequest</a></span> örneği kabul
       ediyor; evvelce <code class="literal">OpenSSL X.509 CSR</code> türünde bir
       özkaynak kabul ederdi.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.openssl-csr-get-subject-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - openssl_csr_get_subject() örneği</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$subject </span><span style="color: #007700">= array(<br />    </span><span style="color: #DD0000">"countryName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"CA"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"stateOrProvinceName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"Alberta"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"localityName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"Calgary"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"organizationName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"XYZ Widgets Inc"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"organizationalUnitName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"PHP Documentation Team"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"commonName" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"Wez Furlong"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"emailAddress" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"wez@example.com"</span><span style="color: #007700">,<br />);<br /></span><span style="color: #0000BB">$private_key </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_pkey_new</span><span style="color: #007700">(array(<br />    </span><span style="color: #DD0000">"private_key_bits" </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">2048</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"private_key_type" </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">OPENSSL_KEYTYPE_RSA</span><span style="color: #007700">,<br />));<br /></span><span style="color: #0000BB">$configargs </span><span style="color: #007700">= array(<br />    </span><span style="color: #DD0000">'digest_alg' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'sha512WithRSAEncryption'<br /></span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$csr </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_csr_new</span><span style="color: #007700">(</span><span style="color: #0000BB">$subject</span><span style="color: #007700">, </span><span style="color: #0000BB">$privkey</span><span style="color: #007700">, </span><span style="color: #0000BB">$configargs</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">openssl_csr_get_subject</span><span style="color: #007700">(</span><span style="color: #0000BB">$csr</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [C] =&gt; CA
    [ST] =&gt; Alberta
    [L] =&gt; Calgary
    [O] =&gt; XYZ Widgets Inc
    [OU] =&gt; PHP Documentation Team
    [CN] =&gt; Wez Furlong
    [emailAddress] =&gt; wez@example.com
)</pre>
</div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.openssl-csr-get-subject-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <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-get-public-key.php" class="function" rel="rdfs-seeAlso">openssl_csr_get_public_key()</a> - Bir CSR'nin a&ccedil;ık anahtarını d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.openssl-x509-parse.php" class="function" rel="rdfs-seeAlso">openssl_x509_parse()</a> - Bir X509 sertifikasını &ccedil;&ouml;z&uuml;mleyip bilgileri bir dizi i&ccedil;inde
  d&ouml;nd&uuml;r&uuml;r</span></li>
   </ul>
  </p>
 </div>


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