Results of 1 - 10 of about 41 for cert (0.002 sec.)
- openssl_get_cert_locations — 有効な証明書の格納場所を検索する | PHP 8.3 15527
- openssl_get_cert_locations (PHP 5 >= 5.6.0, PHP 7, PHP 8) openssl_get_cert_locations — 有効な証明書の格納場所を検索する 説明 function 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 ... lt_cert_dir_env"]=> string(12) "SSL_CERT_DIR" ["default_private_dir"]=> string(20) "/usr/lib/ssl/private" ["default_default_cert_a ...
-
https://man.mtool.work/php/8.3/function.openssl-get-cert-locations.html
- openssl_pkcs12_read — PKCS #12 認証ストアをパースして配列形式にする | PHP 8.3 10879
- 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 ... s12_read ( $cert_store , $cert_info , "my_secret_pass" )) { echo "Certificate Information\n" ; print_r ( $cert_info ); } else { echo "Error ...
-
https://man.mtool.work/php/8.3/function.openssl-pkcs12-read.html
- 例 | PHP 8.3 9993
- 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove
... 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
- PHP 5.6.x における OpenSSL 関連の変更 | PHP 8.3 9993
- PHP 5.6.x における OpenSSL 関連の変更 ストリームラッパーが、SSL/TLS を使っている場合のピア証明書とホスト名の検証にデフォルトで対応 暗号化されたすべてのクライアントストリームで、ピア検証がデフォルトで有効になりました。 デフォルトでは、OpenSS
... 明書からフィンガープリントを抽出します。また、 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
- The EventSslContext class | PHP 8.3 8657
- The EventSslContext class (PECL event >= 1.2.6-beta) はじめに Represents SSL_CTX structure. Provides methods and properties to configure the SSL context. クラス概要 final class EventSslContext { /* 定数 */ const int SSLv2_CLIENT_METHOD = 1
... 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
- EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data ov... 8657
- EventBufferEvent::sslFilter (PECL event >= 1.2.6-beta) EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data over another buffer event 説明 public static function EventBufferEvent::sslFilter ( EventBase $base , EventB
... ject. 例 例1 Simple SMTP server <?php /* * Author: Andrew Rose <hello at andrewrose dot co dot uk> * * Usage: * 1) Prepare cert.pem certificate and privkey.pem private key files. * 2) Launch the server script * 3) Open TLS connection, e.g.: * $ opens ... onstruct () { $this -> ctx = new EventSslContext ( EventSslContext :: SSLv3_SERVER_METHOD , [ EventSslContext :: OPT_LOCAL_CERT => 'cert.pem' , EventSslContext :: OPT_LOCAL_PK => 'privkey.pem' , //EventSslContext::OPT_PASSPHRASE => '', EventSslContex ... t :: OPT_VERIFY_PEER => false , // change to true with authentic cert EventSslContext :: OPT_ALLOW_SELF_SIGNED => true // change to false with authentic cert ]); $this -> base = new EventBase ...
-
https://man.mtool.work/php/8.3/eventbufferevent.sslfilter.html
- SolrClient::__construct — Constructor for the SolrClient object | PHP 8.3 8455
- SolrClient::__construct (PECL solr >= 0.9.2) SolrClient::__construct — Constructor for the SolrClient object 説明 public function SolrClient::__construct ( array $clientOptions ) Constructor for the SolrClient object パラメータ clientOption
... ord) - timeout (This is maximum time in seconds allowed for the http data transfer operation. Default is 30 seconds) - ssl_cert (File name to a PEM-formatted file containing the private key + private certificate (concatenated in that order) ) - ssl_k ... tted private key file only) - ssl_keypassword (Password for private key) - ssl_cainfo (Name of file holding one or more CA certificates to verify peer with) - ssl_capath (Name of directory holding multiple CA certificates to verify peer with ) Please ... note the if the ssl_cert file only contains the private certificate, you have to specify a separate ssl_key file The ssl_keypassword option is requ ...
-
https://man.mtool.work/php/8.3/solrclient.construct.html
- EventSslContext::__construct — Constructs an OpenSSL context for use with Event... 8377
- EventSslContext::__construct (PECL event >= 1.2.6-beta) EventSslContext::__construct — Constructs an OpenSSL context for use with Event classes 説明 public function EventSslContext::__construct ( string $method , string $options ) Creates S
... () 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 ...
-
https://man.mtool.work/php/8.3/eventsslcontext.construct.html
- SSL コンテキストオプション — SSL コンテキストオプションの一覧 | PHP 8.3 8253
- SSL コンテキストオプション SSL コンテキストオプション — SSL コンテキストオプションの一覧 説明 ssl:// および tls:// トランスポート用のコンテキストオプションです。 オプション peer_name string 使用するピア名。省略した場合は、ストリームをオープ
... ディレクトリを検索して認証ファイルを探します。 capath は認証ファイルのディレクトリを正確に指している必要があります。 local_cert string ファイルシステム上のローカル証明書ファイルのパス。 あなたの証明書とプライベートキーを含み、 PEM エンコードされた フ ... ファイルに含めることも可能です。 local_pk string ローカルファイルシステム上のプライベートキーファイルの場所。 証明書 ( local_cert ) とプライベートキーを別のファイルに分けたい場合に用います。 passphrase string local_cert ファイルをエンコードした際の パス ... 式の一覧を設定します。設定できるフォーマットは » ciphers(1) の説明を参照ください。 デフォルトは DEFAULT です。 capture_peer_cert bool true に設定すると、 peer_certificate コンテキストオプションがピア証明書を含んで作成されます。 capture_peer_cert_chain ...
-
https://man.mtool.work/php/8.3/context.ssl.html
- OAuth::setRSACertificate — RSA 証明書を設定する | PHP 8.3 8051
- OAuth::setRSACertificate (PECL OAuth >= 1.0.0) OAuth::setRSACertificate — RSA 証明書を設定する 説明 public function OAuth::setRSACertificate ( string $cert ): mixed RSA 証明書を設定します。 警告 この関数は、 現在のところ詳細な情報はありませ
... ん。引数のリストのみが 記述されています。 パラメータ cert RSA 証明書。 戻り値 成功した場合に true 、失敗した場合 (RSA 証明書がパースできなかった場合はど) に false を返します。 変更 ... 履歴 バージョン 説明 PECL oauth 1.0.0 以前は、失敗したときに false ではなく null を返していました。 例 例1 OAuth::setRsaCertificate() の例 <?php $consume = new OAuth ( '1234' , '' , OAUTH_SIG_METHOD_RSASHA1 ); $consume -> setRSACertificate ( file_ ...
-
https://man.mtool.work/php/8.3/oauth.setrsacertificate.html