(PHP 8)
openssl_cms_decrypt — Decrypt a CMS message
$input_filename
, string $output_filename
, OpenSSLCertificate|string $certificate
, OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key = null
, int $encoding = OPENSSL_ENCODING_SMIME
) : boolDecrypts a CMS message.
input_filenameThe name of a file containing encrypted content.
output_filenameThe name of the file to deposit the decrypted content.
certificateThe name of the file containing a certificate of the recipient.
private_keyThe name of the file containing a PKCS#8 key.
encoding
The encoding of the input file. One of OPENSSL_CMS_SMIME,
OPENSLL_CMS_DER or OPENSSL_CMS_PEM.
Returns true on success or false on failure.