openssl_x509_check_private_key

Example

 bool openssl_x509_check_private_key ( mixed $cert , mixed $key ) 

Description

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

Return Values

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