« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for noout (0.081 sec.)
openssl_dh_compute_key — ローカルのDH秘密鍵とリモート側のDH公開鍵を使い、共有シ... 9414
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 ... 開鍵をリモート側で調べるために、 openssl pkey コマンドを使ってください。 openssl pkey -pubin -in remotepublickey.pem -text -noout 上の例の出力は、 たとえば以下のようになります。 PKCS#3 DH Public-Key: (2048 bit) public-key: 67:e5:e5:fa:e0:7b:0f:96:2c:dc ... te キーペアをPHPで生成する まず、DH prime を生成します。 openssl dhparam -out dhparam.pem 2048 openssl dh -in dhparam.pem -noout -text 上の例の出力は、 たとえば以下のようになります。 PKCS#3 DH Parameters: (2048 bit) prime: 00:a3:25:1e:73:3f:44:b9:2b:e ...
https://man.mtool.work/php/8.3/function.openssl-dh-compute-key.html
PREV 1 NEXT