Please note that this function only compares the public key component of the private key with the public key residing in the certificate.
openssl_x509_check_private_key
(PHP 4 >= 4.2.0, PHP 5)
openssl_x509_check_private_key — 秘密鍵が証明書に対応するかを確認する
パラメータ
-
cert -
証明書。
-
key -
秘密鍵。
返り値
key が
cert に対応する秘密鍵の場合に
TRUE、それ以外の場合に FALSE を返します。
chris dot kistner at gmail dot com
07-Jan-2011 02:35
