openssl_cms_decrypt
(PHP 8)
openssl_cms_decrypt — Decrypt a CMS message
Description
openssl_cms_decrypt(
string
string
#[\SensitiveParameter] OpenSSLCertificate|string
#[\SensitiveParameter] OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null
int
): bool
string
$input_filename,string
$output_filename,#[\SensitiveParameter] OpenSSLCertificate|string
$certificate,#[\SensitiveParameter] OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null
$private_key = null,int
$encoding = OPENSSL_ENCODING_SMIME): bool
Decrypts a CMS message.
Parameters
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.
encodingThe encoding of the input file. One of
OPENSSL_ENCODING_SMIME,OPENSSL_ENCODING_DERorOPENSSL_ENCODING_PEM.
↑ and ↓ to navigate • Enter to select • Esc to close • / to open