openssl_cms_decrypt

Supported Versions: PHP 8
Decrypt a CMS message
<?php openssl_cms_decrypt(    string $input_filename,    string $output_filename,    OpenSSLCertificate|string $certificate,    OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key = null,    int $encoding = OPENSSL_ENCODING_SMIME): bool