openssl_cms_encrypt

Supported Versions: PHP 8
Encrypt a CMS message
<?php openssl_cms_encrypt(    string $input_filename,    string $output_filename,    OpenSSLCertificate|array|string $certificate,    ?array $headers,    int $flags = 0,    int $encoding = OPENSSL_ENCODING_SMIME,    int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC): bool