openssl_pkcs7_verify

Example

 mixed openssl_pkcs7_verify ( string $filename , int $flags [, string $outfilename [, array $cainfo [, string $extracerts [, string $content ]]]] ) 

Description

openssl_pkcs7_verify() reads the S/MIME message contained in the given file and examines the digital signature.

Return Values

Returns TRUE if the signature is verified, FALSE if it is not correct (the message has been tampered with, or the signing certificate is invalid), or -1 on error.