openssl_cms_encrypt
openssl_cms_encrypt
Encrypt a CMS message
bool **openssl_cms_encrypt** string $input_filename string $output_filename $certificate $headers int $flags int $encoding $cipher_algo
This function encrypts content to one or more recipients, based on the certificates that are passed to it.
input_filenameThe file to be encrypted.
output_filenameThe output file.
certificateRecipients to encrypt to.
headersHeaders to include when S/MIME is used.
flagsFlags to be passed to CMS_sign.
encoding
An encoding to output. One of ,
or .
OPENSSL_ENCODING_SMIME``OPENSSL_ENCODING_DER``OPENSSL_ENCODING_PEM
cipher_algoA cipher to use.
return.success