« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for privkey (0.002 sec.)
ssh2_auth_pubkey — Authenticate using a public key in a variable | PHP 8.3 13140
ssh2_auth_pubkey (PECL ssh2 >= 1.4) ssh2_auth_pubkey — Authenticate using a public key in a variable 説明 function ssh2_auth_pubkey ( resource $session , string $username , string $pubkey , string $privkey , string $passphrase = ? ): bool A ... Public key in OpenSSH's format. It should look something like: ssh-rsa AAAAB3NzaC1yc2EAAA....NX6sqSnHA8= rsa-key-20121110 privkey Private OpenSSH key. It should begin with: -----BEGIN RSA PRIVATE KEY----- passphrase If privkey is encrypted (which it sh ...
https://man.mtool.work/php/8.3/function.ssh2-auth-pubkey.html
openssl_csr_new — CSR を作成する | PHP 8.3 10627
openssl_csr_new (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) openssl_csr_new — CSR を作成する 説明 function openssl_csr_new ( array $distinguished_names , #[ \SensitiveParameter ] ? OpenSSLAsymmetricKey &$private_key , ? array $options = null , ? ... "commonName" => "Wez Furlong" , "emailAddress" => "wez@example.com" ); // 新しい 秘密鍵(と公開鍵の) キーペアを生成します $privkey = openssl_pkey_new (array( "private_key_bits" => 2048 , "private_key_type" => OPENSSL_KEYTYPE_RSA , )); // CSR を生成します ... $csr = openssl_csr_new ( $dn , $privkey , array( 'digest_alg' => 'sha256' )); // 自己署名の証明書を生成します。365日有効です $x509 = openssl_csr_sign ( $csr , nul ... l , $privkey , $days = 365 , array( 'digest_alg' => 'sha256' )); // 秘密鍵、CSR と自己署名証明書をあとで使うために保存します。 openssl_ ...
https://man.mtool.work/php/8.3/function.openssl-csr-new.html
EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data ov... 8621
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 ... 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.: * $ openssl s_client -connect localho ... slContext :: SSLv3_SERVER_METHOD , [ EventSslContext :: OPT_LOCAL_CERT => 'cert.pem' , EventSslContext :: OPT_LOCAL_PK => 'privkey.pem' , //EventSslContext::OPT_PASSPHRASE => '', EventSslContext :: OPT_VERIFY_PEER => false , // change to true with authe ...
https://man.mtool.work/php/8.3/eventbufferevent.sslfilter.html
openssl_csr_sign — CSR に他の証明書(あるいは自分自身)で署名して証明書を作成す... 8621
openssl_csr_sign (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) openssl_csr_sign — CSR に他の証明書(あるいは自分自身)で署名して証明書を作成する 説明 function openssl_csr_sign ( OpenSSLCertificateSigningRequest | string $csr , OpenSSLCertificate | ... されていない限り、その手続きは無意味です。 // 自己認証局証明書とその秘密鍵が必要です。 $cacert = "file://path/to/ca.crt" ; $privkey = array( "file://path/to/ca.key" , "your_ca_key_passphrase" ); $usercert = openssl_csr_sign ( $csrdata , $cacert , $privke ...
https://man.mtool.work/php/8.3/function.openssl-csr-sign.html
例 | PHP 8.3 8115
例 例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 ... lRandPoll ()) { exit( "EventUtil::sslRandPoll failed\n" ); } $local_cert = __DIR__ . "/cert.pem" ; $local_pk = __DIR__ . "/privkey.pem" ; if (! file_exists ( $local_cert ) || ! file_exists ( $local_pk )) { echo "Couldn't read $local_cert or $local_pk fi ... ); } function _init_ssl () { $local_cert = __DIR__ . "/ssl-echo-server/cert.pem" ; $local_pk = __DIR__ . "/ssl-echo-server/privkey.pem" ; $ctx = new EventSslContext ( EventSslContext :: SSLv3_SERVER_METHOD , array ( EventSslContext :: OPT_LOCAL_CERT => ... 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.: * $ openssl s_client -connect localho ...
https://man.mtool.work/php/8.3/event.examples.html
openssl_cms_sign — ファイルに署名する | PHP 8.3 8115
openssl_cms_sign (PHP 8) openssl_cms_sign — ファイルに署名する 説明 function openssl_cms_sign ( string $input_filename , string $output_filename , OpenSSLCertificate | string $certificate , #[ \SensitiveParameter ] OpenSSLAsymmetricKey | Op ... 返します。 例 例1 openssl_cms_sign() の例 <?php openssl_cms_sign ( 'input.txt' , 'output.txt' , 'file://cert.pem' , 'file://privkey.pem' , null , OPENSSL_CMS_BINARY , OPENSSL_ENCODING_DER , 'chain.pem' ); ?> 他のマニュアルの関連ページ Docker Docker Swarm ...
https://man.mtool.work/php/8.3/function.openssl-cms-sign.html
openssl_csr_get_subject — CSR の subject を返す | PHP 8.3 7609
openssl_csr_get_subject (PHP 5 >= 5.2.0, PHP 7, PHP 8) openssl_csr_get_subject — CSR の subject を返す 説明 function openssl_csr_get_subject ( OpenSSLCertificateSigningRequest | string $csr , bool $short_names = true ): array | false openss ... L_KEYTYPE_RSA , )); $configargs = array( 'digest_alg' => 'sha512WithRSAEncryption' ); $csr = openssl_csr_new ( $subject , $privkey , $configargs ); print_r ( openssl_csr_get_subject ( $csr )); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [ ...
https://man.mtool.work/php/8.3/function.openssl-csr-get-subject.html
ssh2:// — Secure Shell 2 | PHP 8.3 7374
ssh2:// ssh2:// — Secure Shell 2 説明 ssh2.shell:// ssh2.exec:// ssh2.tunnel:// ssh2.sftp:// ssh2.scp:// (PECL) 注意 : このラッパーはデフォルトでは有効になっていません ssh2.*:// ラッパーを使用するには、 » PECL から » SSH2 拡張モジュールを ... callbacks username 接続するユーザー名 password パスワード認証に使用するパスワード pubkey_file 認証に使用する公開鍵ファイル privkey_file 認証に使用する秘密鍵ファイル env 設定する環境変数の連想配列 term pty を割り当てる際の端末エミュレート方式 term_width ...
https://man.mtool.work/php/8.3/wrappers.ssh2.html
PREV 1 NEXT