openssl_pkcs7_verify
openssl_pkcs7_verify
Verifies the signature of an S/MIME signed message
**openssl_pkcs7_verify** string $input_filename int $flags $signers_certificates_filename array $ca_info $untrusted_certificates_filename $content $output_filename
reads the S/MIME message
contained in the given file and examines the digital signature.
openssl_pkcs7_verify
input_filenamePath to the message.
flags
can be used to affect how the signature is
verified - see
for more information.
flagsPKCS7 constants
signers_certificates_filename
If the is specified, it should be a
string holding the name of a file into which the certificates of the
persons that signed the messages will be stored in format.
signers_certificates_filename
ca_info
If the is specified, it should hold
information about the trusted CA certificates to use in the verification
process - see for more information about this parameter.
ca_infocertificate
verification
untrusted_certificates_filename
If the is specified, it is the filename
of a file containing a bunch of certificates to use as untrusted CAs.
untrusted_certificates_filename
content
You can specify a filename with that will
be filled with the verified data, but with the signature information
stripped.
content
output_filename
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.
Opmerking: > As specified in RFC 2045, lines may not be longer than 76 characters in the parameter.
input_filename