openssl_pkcs7_verify

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

説明

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

戻り値

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.