<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/openssl.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'openssl.configuration.php',
    1 => '実行時設定',
    2 => '実行時設定',
  ),
  'up' => 
  array (
    0 => 'openssl.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'openssl.installation.php',
    1 => 'インストール手順',
  ),
  'next' => 
  array (
    0 => 'openssl.resources.php',
    1 => 'リソース型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/openssl/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="openssl.configuration" class="section">
 <h2 class="title">実行時設定</h2>
 <p class="simpara">
<var class="filename">php.ini</var> の設定により動作が変化します。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>openssl 設定オプション</strong></caption>
   
    <thead>
     <tr>
      <th>名前</th>
      <th>デフォルト</th>
      <th>変更可能</th>
      <th>変更履歴</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>openssl.cafile</td>
      <td>&quot;&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>openssl.capath</td>
      <td>&quot;&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td>openssl.libctx</td>
      <td>&quot;custom&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  INI_* モードの詳細および定義については
<a href="configuration.changes.modes.php" class="xref">どこで設定を行うのか</a> を参照してください。
 </p>

 <p class="para">以下に設定ディレクティブに関する
簡単な説明を示します。</p>

 <p class="para">
  <dl>
   
    <dt id="ini.openssl.cafile">
     <code class="parameter">openssl.cafile</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
       ローカルファイルシステム上の証明書ファイルの場所。
       <code class="literal">verify_peer</code> コンテキストオプションで
       リモートサーバーとの認証の際に使用します。
     </p>
    </dd>
   
   
    <dt id="ini.openssl.capath">
     <code class="parameter">openssl.capath</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
       <code class="literal">cafile</code> が指定されていなかったりその場所にファイルが
       見つからなかったりした場合、<code class="literal">capath</code> が指す
       ディレクトリを検索して認証ファイルを探します。<code class="literal">capath</code>
       は認証ファイルのディレクトリを正確に指している必要があります。
     </p>
    </dd>
   
   
    <dt id="ini.openssl.libctx">
     <code class="parameter">openssl.libctx</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <span class="simpara">
      使用する OpenSSL ライブラリのコンテキストタイプを指定します。
      デフォルト値は <code class="literal">custom</code> で、
      ワーカーやスレッドごとに異なるライブラリコンテキストを作成します。
      これにより、OpenSSL を使用している他のライブラリとの分離が促進され、
      ZTS ビルドでは、スレッド間での分離も進みます。
      <code class="literal">default</code> という値も指定できますが、
      この場合、
      PHP が OpenSSL のグローバルなデフォルトのライブラリのコンテキストを使います。
     </span>
    </dd>
   
  </dl>
 </p>

 <p class="para">
  <a href="context.ssl.php" class="link">SSL コンテキスト</a> オプションも参照ください。
 </p>

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