PHP.nl

openssl_cms_verify

openssl_cms_verify

Verify a CMS signature

bool **openssl_cms_verify** string $input_filename int $flags  $certificates array $ca_info  $untrusted_certificates_filename  $content  $pk7  $sigfile int $encoding

This function verifies a CMS signature, either attached or detached, with the specified encoding.

input_filenameThe input file.

flags Flags to pass to . cms_verify

certificatesA file with the signer certificate and optionally intermediate certificates.

ca_infoAn array containing self-signed certificate authority certificates.

untrusted_certificates_filenameA file containing additional intermediate certificates.

contentA file pointing to the content when signatures are detached.

pk7

sigfileA file to save the signature to.

encoding The encoding of the input file. One of , or . OPENSSL_ENCODING_SMIME``OPENSSL_ENCODING_DER``OPENSSL_ENCODING_PEM

return.success