« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for privatekey (0.001 sec.)
PharData::setSignatureAlgorithm — phar のシグネチャのアルゴリズムを設定する | P... 12493
PharData::setSignatureAlgorithm (No version information available, might only be in Git) PharData::setSignatureAlgorithm — phar のシグネチャのアルゴリズムを設定する 説明 public function PharData::setSignatureAlgorithm ( int $algo , ? string ... $privateKey = null ): void 注意 : このメソッドは、 php.ini の phar.readonly が 0 でないと Phar オブジェクトで動作しません。それ以外の場 ... ければなりません パラメータ algo Phar::MD5 、 Phar::SHA1 、 Phar::SHA256 、 Phar::SHA512 あるいは Phar::OPENSSL のいずれか。 privateKey OpenSSL 秘密鍵の中身。証明書あるいは OpenSSL 鍵ファイルから取り出したもの。 <?php $p = new PharData ( 'archive.tar' ); $pr ... ivate = openssl_get_privatekey ( file_get_contents ( 'private.pem' )); $pkey = '' ; openssl_pkey_export ( $private , $pkey ); $p -> setSignatureAlgorithm ...
https://man.mtool.work/php/8.3/phardata.setsignaturealgorithm.html
Phar::setSignatureAlgorithm — phar のシグネチャのアルゴリズムを設定して適用する... 12043
Phar::setSignatureAlgorithm (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.1.0) Phar::setSignatureAlgorithm — phar のシグネチャのアルゴリズムを設定して適用する 説明 public function Phar::setSignatureAlgorithm ( int $algo , ? string $privateKey ... 必要があります。 パラメータ algo Phar::MD5 、 Phar::SHA1 、 Phar::SHA256 、 Phar::SHA512 あるいは Phar::OPENSSL のいずれか。 privateKey OpenSSL 秘密鍵の中身。証明書あるいは OpenSSL 鍵ファイルから取り出したもの。 <?php $p = new Phar ( 'archive.phar' ); $priva ... te = openssl_get_privatekey ( file_get_contents ( 'private.pem' )); $pkey = '' ; openssl_pkey_export ( $private , $pkey ); $p -> setSignatureAlgorithm ... す。 変更内容をディスクに書き込むときにエラーが発生した場合は PharException をスローします。 変更履歴 バージョン 説明 8.0.0 privateKey は、nullable になりました。 参考 Phar::getSupportedSignatures() - サポートするシグネチャ型の配列を返す Phar::getSignature( ...
https://man.mtool.work/php/8.3/phar.setsignaturealgorithm.html
openssl_get_privatekey — openssl_pkey_get_private() | PHP 8.3 11159
openssl_get_privatekey (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) openssl_get_privatekey — openssl_pkey_get_private() のエイリアス 説明 この関数は次の関数のエイリアスです。 openssl_pkey_get_private() . 他のマニュアルの関連ページ Python unix Linu ...
https://man.mtool.work/php/8.3/function.openssl-get-privatekey.html
openssl_dh_compute_key — ローカルのDH秘密鍵とリモート側のDH公開鍵を使い、共有シ... 9686
openssl_dh_compute_key (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_dh_compute_key — ローカルのDH秘密鍵とリモート側のDH公開鍵を使い、共有シークレットを計算する 説明 function openssl_dh_compute_key ( string $public_key , #[ \SensitiveParameter ] O ... す。 # generate private/public key keypair openssl dhparam -out dhparam.pem 2048 openssl genpkey -paramfile dhparam.pem -out privatekey.pem # extract public key only openssl pkey -in privatekey.pem -pubout -out publickey.pem 次に、あなたの公開鍵をリモート側に ... 4aae87835543ab7a7c049d2080bbaf5f16a3e320b921478cf87fa860809e617736' ; $local_priv_key = openssl_pkey_get_private ( 'file://privatekey.pem' ); $shared_secret = openssl_dh_compute_key ( hex2bin ( $remote_public_key ), $local_priv_key ); echo bin2hex ( $share ... in ( '02' ); $private_key = openssl_pkey_new (array( 'dh' => $configargs )); openssl_pkey_export_to_file ( $private_key , 'privatekey.pem' , $passphrase = 'y0urp@s5phr@se' ); $details = openssl_pkey_get_details ( $private_key ); $local_pub_key = $details [ ...
https://man.mtool.work/php/8.3/function.openssl-dh-compute-key.html
ssh2_auth_pubkey — Authenticate using a public key in a variable | PHP 8.3 9686
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 ... h-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 should be), the passphrase must be provided. 戻り値 成功した場合に true ... xample.com' , 22 , array( 'hostkey' => 'ssh-rsa' )); $publicKey = file_get_contents ( '/home/username/.ssh/id_rsa.pub' ); $privateKey = file_get_contents ( '/home/username/.ssh/id_rsa' ); if ( ssh2_auth_pubkey ( $connection , 'username' , $publicKey , $pri ...
https://man.mtool.work/php/8.3/function.ssh2-auth-pubkey.html
MongoDB\Driver\ClientEncryption::__construct — Create a new ClientEncryption ob... 7901
MongoDB\Driver\ClientEncryption::__construct (mongodb >=1.14.0) MongoDB\Driver\ClientEncryption::__construct — Create a new ClientEncryption object 説明 final public function MongoDB\Driver\ClientEncryption::__construct ( array $options ) C ... <optional string> // Defaults to "login.microsoftonline.com" } The format for "gcp" is as follows: gcp: { email: <string>, privateKey: <base64 string>|<MongoDB\BSON\Binary>, endpoint: <optional string> // Defaults to "oauth2.googleapis.com" } The format fo ...
https://man.mtool.work/php/8.3/mongodb-driver-clientencryption.construct.html
MongoDB\Driver\Manager::createClientEncryption — Create a new ClientEncryption ... 7901
MongoDB\Driver\Manager::createClientEncryption (mongodb >=1.7.0) MongoDB\Driver\Manager::createClientEncryption — Create a new ClientEncryption object 説明 final public function MongoDB\Driver\Manager::createClientEncryption ( array $option ... <optional string> // Defaults to "login.microsoftonline.com" } The format for "gcp" is as follows: gcp: { email: <string>, privateKey: <base64 string>|<MongoDB\BSON\Binary>, endpoint: <optional string> // Defaults to "oauth2.googleapis.com" } The format fo ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.createclientencryption.htm...
キー/証明書パラメータ | PHP 8.3 7901
キー/証明書パラメータ OpenSSL 関数のうち、キーまたは証明書パラメータを必要とするものはごく一部です。 以下の方法を使用してそれらを取得できます。 証明書 openssl_x509_read() から返された OpenSSLCertificate クラスのインスタンス。 (PHP 8.0.0 より ... 含む文字列。 -----BEGIN CERTIFICATE REQUEST----- から始まります。 公開鍵/秘密鍵 openssl_get_publickey() あるいは openssl_get_privatekey() から返された OpenSSLAsymmetricKey クラスのインスタンス。 (PHP 8.0.0 より前のバージョンでは、 OpenSSL key 型のリソース) 公 ...
https://man.mtool.work/php/8.3/openssl.certparams.html
openssl_open — シール(暗号化)されたデータをオープン(復号)する | PHP 8.3 7763
openssl_open (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) openssl_open — シール(暗号化)されたデータをオープン(復号)する 説明 function openssl_open ( string $data , #[ \SensitiveParameter ] string &$output , string $encrypted_key , #[ \SensitivePar ... 仮定。すべてシール元(暗号化側)から与えられる。 // private_key.pem に置かれたファイルから秘密鍵を取得する $pkey = openssl_get_privatekey ( "file://private_key.pem" ); // データを復号化し、$open に保存 if ( openssl_open ( $sealed , $open , $env_key , $pkey , ' ...
https://man.mtool.work/php/8.3/function.openssl-open.html
openssl_sign — 署名を生成する | PHP 8.3 7763
openssl_sign (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) openssl_sign — 署名を生成する 説明 function openssl_sign ( string $data , string &$signature , #[ \SensitiveParameter ] OpenSSLAsymmetricKey | OpenSSLCertificate | array | string $private_k ... いデータの文字列。 signature 成功した場合、署名が signature に格納されます。 private_key OpenSSLAsymmetricKey - openssl_get_privatekey() が返す鍵。 string - PEM フォーマットの鍵。 algorithm int - いずれかの ダイジェストアルゴリズム 。 ダイジェストアルゴリズ ...
https://man.mtool.work/php/8.3/function.openssl-sign.html
PREV 1 2 NEXT