openssl_x509_check_private_key

 bool openssl_x509_check_private_key ( mixed $cert , mixed $key ) 

説明

Checks whether the given key is the private key that corresponds to cert.

戻り値

Returns TRUE if key is the private key that corresponds to cert, or FALSE otherwise.