array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.openssl-cms-decrypt.php', 1 => 'openssl_cms_decrypt', ), 'up' => array ( 0 => 'ref.openssl.php', 1 => 'Funciones de OpenSSL', ), 'prev' => array ( 0 => 'function.openssl-cipher-key-length.php', 1 => 'openssl_cipher_key_length', ), 'next' => array ( 0 => 'function.openssl-cms-encrypt.php', 1 => 'openssl_cms_encrypt', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/openssl/functions/openssl-cms-decrypt.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 8)
openssl_cms_decrypt — Decrypt a CMS message
$input_filename
,$output_filename
,$certificate
,$private_key
= null
,$encoding
= OPENSSL_ENCODING_SMIME
Decrypts a CMS message.
input_filename
The name of a file containing encrypted content.
output_filename
The name of the file to deposit the decrypted content.
certificate
The name of the file containing a certificate of the recipient.
private_key
The name of the file containing a PKCS#8 key.
encoding
The encoding of the input file. One of OPENSSL_ENCODING_SMIME
,
OPENSSL_ENCODING_DER
or OPENSSL_ENCODING_PEM
.