array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.openssl-cms-verify.php', 1 => 'openssl_cms_verify', ), 'up' => array ( 0 => 'ref.openssl.php', 1 => 'OpenSSL Functions', ), 'prev' => array ( 0 => 'function.openssl-cms-sign.php', 1 => 'openssl_cms_sign', ), 'next' => array ( 0 => 'function.openssl-csr-export-to-file.php', 1 => 'openssl_csr_export_to_file', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/openssl/functions/openssl-cms-verify.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 8)
openssl_cms_verify — Verify a CMS signature
$input_filename
,$flags
= 0,$certificates
= null
,$ca_info
= [],$untrusted_certificates_filename
= null
,$content
= null
,$pk7
= null
,$sigfile
= null
,$encoding
= OPENSSL_ENCODING_SMIME
This function verifies a CMS signature, either attached or detached, with the specified encoding.
input_filename
The input file.
flags
Flags to pass to cms_verify().
certificates
A file with the signer certificate and optionally intermediate certificates.
ca_info
An array containing self-signed certificate authority certificates.
untrusted_certificates_filename
A file containing additional intermediate certificates.
content
A file pointing to the content when signatures are detached.
pk7
sigfile
A file to save the signature to.
encoding
The encoding of the input file. One of OPENSSL_ENCODING_SMIME
,
OPENSSL_ENCODING_DER
or OPENSSL_ENCODING_PEM
.