« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 88 for cert (0.003 sec.)
有効な証明書の格納場所を検索する 13217
« openssl_free_key openssl_get_cipher_methods » PHP Manual OpenSSL 関数 有効な証明書の格納場所を検索する 検索 openssl_get_cert_locations (PHP 5 >= 5.6.0, PHP 7, PHP 8) openssl_get_cert_locations — 有効な証明書の格納場所を検索する 説明 funct ... ion openssl_get_cert_locations (): array openssl_get_cert_locations() は SSL 証明書の検出された有効な証明書の格納場所についての 情報の配列を返し ... ます。 パラメータ この関数にはパラメータはありません。 戻り値 有効な証明書の格納場所の配列を返します。 例 例1 openssl_get_cert_locations() の例 <?php var_dump ( openssl_get_cert_locations ()); ?> 上の例の出力は以下となります。 array(8) { ["default_c ... ert_file"]=> string(21) "/usr/lib/ssl/cert.pem" ["default_cert_file_env"]=> string(13) "SSL_CERT_FILE" ["default_cert_dir"]=> string(18) "/usr/lib/ssl/certs" ["defau ...
https://man.mtool.work/php/8.3/function.openssl-get-cert-locations.html
有効な証明書の格納場所を検索する 13217
« openssl_free_key openssl_get_cipher_methods » PHP Manual OpenSSL 関数 有効な証明書の格納場所を検索する 検索 openssl_get_cert_locations (PHP 5 >= 5.6.0, PHP 7, PHP 8) openssl_get_cert_locations — 有効な証明書の格納場所を検索する 説明 funct ... ion openssl_get_cert_locations (): array openssl_get_cert_locations() は SSL 証明書の検出された有効な証明書の格納場所についての 情報の配列を返し ... ます。 パラメータ この関数にはパラメータはありません。 戻り値 有効な証明書の格納場所の配列を返します。 例 例1 openssl_get_cert_locations() の例 <?php var_dump ( openssl_get_cert_locations ()); ?> 上の例の出力は以下となります。 array(8) { ["default_c ... ert_file"]=> string(21) "/usr/lib/ssl/cert.pem" ["default_cert_file_env"]=> string(13) "SSL_CERT_FILE" ["default_cert_dir"]=> string(18) "/usr/lib/ssl/certs" ["defau ...
https://man.mtool.work/php/8.3/function.openssl-get-cert-locations.html
PKCS#12 認証ストアをパースして配列形式にする 9812
« openssl_pkcs12_export_to_file openssl_pkcs7_decrypt » PHP Manual OpenSSL 関数 PKCS#12 認証ストアをパースして配列形式にする 検索 openssl_pkcs12_read (PHP 5 >= 5.2.2, PHP 7, PHP 8) openssl_pkcs12_read — PKCS #12 認証ストアをパースして配列形 ... 式にする 説明 function openssl_pkcs12_read ( string $pkcs12 , array &$certificates , #[ \SensitiveParameter ] string $passphrase ): bool openssl_pkcs12_read() は、 pkcs12 で指定した PKCS #12 認証ス ... トアをパースして certificates で指定した配列に格納します。 パラメータ pkcs12 認証ストアの内容。ファイル名ではありません。 certificates 成功した場 ... パスワード。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 openssl_pkcs12_read() の例 <?php if (! $cert_store = file_get_contents ( "/certs/file.p12" )) { echo "Error: Unable to read the cert file\n" ; exit; } if ( openssl_pkc ...
https://man.mtool.work/php/8.3/function.openssl-pkcs12-read.html
PKCS#12 認証ストアをパースして配列形式にする 9758
« openssl_pkcs12_export_to_file openssl_pkcs7_decrypt » PHP Manual OpenSSL 関数 PKCS#12 認証ストアをパースして配列形式にする 検索 openssl_pkcs12_read (PHP 5 >= 5.2.2, PHP 7, PHP 8) openssl_pkcs12_read — PKCS #12 認証ストアをパースして配列形 ... 式にする 説明 function openssl_pkcs12_read ( string $pkcs12 , array &$certificates , #[ \SensitiveParameter ] string $passphrase ): bool openssl_pkcs12_read() は、 pkcs12 で指定した PKCS #12 認証ス ... トアをパースして certificates で指定した配列に格納します。 パラメータ pkcs12 認証ストアの内容。ファイル名ではありません。 certificates 成功した場 ... パスワード。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 openssl_pkcs12_read() の例 <?php if (! $cert_store = file_get_contents ( "/certs/file.p12" )) { echo "Error: Unable to read the cert file\n" ; exit; } if ( openssl_pkc ...
https://man.mtool.work/php/8.3/function.openssl-pkcs12-read.html
PHP 5.6.x における OpenSSL 関連の変更 8699
« 新しい関数 その他の拡張モジュールに対する変更 » PHP Manual PHP 5.5.x から PHP 5.6.x への移行 PHP 5.6.x における OpenSSL 関連の変更 検索 PHP 5.6.x における OpenSSL 関連の変更 ストリームラッパーが、SSL/TLS を使っている場合のピア証明書とホス ... 明書からフィンガープリントを抽出します。また、 SSL ストリームコンテキスト に二つのオプションが追加されました。 capture_peer_cert はピアの X.509 証明書を取り込み、 peer_fingerprint はピアの証明書が指定したフィンガープリントにマッチすることを確かめます。 ... タを含むファイルへのパス。 このファイルは、たとえば以下のようなコマンドで生成したものです。 openssl dhparam -out /path/to/my/certs/dh-2048.pem 2048 single_dh_use true にすると、Diffie-Hellman パラメータを使うときに、 新たな鍵ペアを作成します。これにより ... ストリームソケットトランスポートを利用します $sock = stream_socket_client ( 'tlsv1.2://google.com:443/' ); ?> openssl_get_cert_locations() の追加 openssl_get_cert_locations() 関数が追加されました。 この関数は、PHP が CA バンドルを探す際のデフォルトの ...
https://man.mtool.work/php/8.3/migration56.openssl.html
PHP 5.6.x における OpenSSL 関連の変更 8699
« 新しい関数 その他の拡張モジュールに対する変更 » PHP Manual PHP 5.5.x から PHP 5.6.x への移行 PHP 5.6.x における OpenSSL 関連の変更 検索 PHP 5.6.x における OpenSSL 関連の変更 ストリームラッパーが、SSL/TLS を使っている場合のピア証明書とホス ... 明書からフィンガープリントを抽出します。また、 SSL ストリームコンテキスト に二つのオプションが追加されました。 capture_peer_cert はピアの X.509 証明書を取り込み、 peer_fingerprint はピアの証明書が指定したフィンガープリントにマッチすることを確かめます。 ... タを含むファイルへのパス。 このファイルは、たとえば以下のようなコマンドで生成したものです。 openssl dhparam -out /path/to/my/certs/dh-2048.pem 2048 single_dh_use true にすると、Diffie-Hellman パラメータを使うときに、 新たな鍵ペアを作成します。これにより ... ストリームソケットトランスポートを利用します $sock = stream_socket_client ( 'tlsv1.2://google.com:443/' ); ?> openssl_get_cert_locations() の追加 openssl_get_cert_locations() 関数が追加されました。 この関数は、PHP が CA バンドルを探す際のデフォルトの ...
https://man.mtool.work/php/8.3/migration56.openssl.html
例 8471
« インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input - ... er.php 9998 * * 2) in another terminal window run: * $ socat - SSL:127.0.0.1:9998,verify=1,cafile=examples/ssl-echo-server/cert.pem */ class MySslEchoServer { public $port , $base , $bev , $listener , $ctx ; function __construct ( $port , $host = "12 ... $this -> base -> exit ( NULL ); } // Initialize SSL structures, create an EventSslContext // Optionally create self-signed certificates function init_ssl () { // We *must* have entropy. Otherwise there's no point to crypto. if (! EventUtil :: sslRand ... Poll ()) { exit( "EventUtil::sslRandPoll failed\n" ); } $local_cert = __DIR__ . "/cert.pem" ; $local_pk = __DIR__ . "/privkey.pem" ; if (! file_exists ( $local_cert ) || ! file_exists ( $loc ...
https://man.mtool.work/php/8.3/event.examples.html
例 8471
« インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input - ... er.php 9998 * * 2) in another terminal window run: * $ socat - SSL:127.0.0.1:9998,verify=1,cafile=examples/ssl-echo-server/cert.pem */ class MySslEchoServer { public $port , $base , $bev , $listener , $ctx ; function __construct ( $port , $host = "12 ... $this -> base -> exit ( NULL ); } // Initialize SSL structures, create an EventSslContext // Optionally create self-signed certificates function init_ssl () { // We *must* have entropy. Otherwise there's no point to crypto. if (! EventUtil :: sslRand ... Poll ()) { exit( "EventUtil::sslRandPoll failed\n" ); } $local_cert = __DIR__ . "/cert.pem" ; $local_pk = __DIR__ . "/privkey.pem" ; if (! file_exists ( $local_cert ) || ! file_exists ( $loc ...
https://man.mtool.work/php/8.3/event.examples.html
The EventSslContext class 7801
« EventListener::setErrorCallback EventSslContext::__construct » PHP Manual Event The EventSslContext class 検索 The EventSslContext class (PECL event >= 1.2.6-beta) はじめに Represents SSL_CTX structure. Provides methods and properties to ... t int SSLv3_SERVER_METHOD = 6 ; const int SSLv23_SERVER_METHOD = 7 ; const int TLS_SERVER_METHOD = 8 ; const int OPT_LOCAL_CERT = 1 ; const int OPT_LOCAL_PK = 2 ; const int OPT_PASSPHRASE = 3 ; const int OPT_CA_FILE = 4 ; const int OPT_CA_PATH = 5 ; ... OPT_VERIFY_PEER = 7 ; const int OPT_VERIFY_DEPTH = 8 ; const int OPT_CIPHERS = 9 ; /* プロパティ */ public string $ local_cert ; public string $ local_pk ; /* メソッド */ public function __construct ( string $method , string $options ) } プロパティ ... local_cert Path to local certificate file on filesystem. It must be a PEM -encoded file which contains certificate. It can optionally ...
https://man.mtool.work/php/8.3/class.eventsslcontext.html
Constructs an OpenSSL context for use with Event classes 7801
« EventSslContext EventUtil » PHP Manual EventSslContext Constructs an OpenSSL context for use with Event classes 検索 EventSslContext::__construct (PECL event >= 1.2.6-beta) EventSslContext::__construct — Constructs an OpenSSL context for ... () example <?php $ctx = new EventSslContext ( EventSslContext :: SSLv3_SERVER_METHOD , array( EventSslContext :: OPT_LOCAL_CERT => $local_cert , EventSslContext :: OPT_LOCAL_PK => $local_pk , EventSslContext :: OPT_PASSPHRASE => "echo server" , Event ... Event classes options method constants local EventUtil event beta Creates holding pointer system Associative example SSLv cert server ...
https://man.mtool.work/php/8.3/eventsslcontext.construct.html
PREV 1 2 3 4 5 6 7 8 9 NEXT