Search Results
openssl_pkcs7_sign () prend le contenu du fichier input_filename et le signe en utilisant le certificat et la clé privée contenus dans les arguments certificate et private_key.
Description bool openssl_pkcs7_sign ( string infilename, string outfilename, mixed signcert, mixed privkey, array headers [, int flags [, string extracerts]] ) openssl_pkcs7_sign () takes the contents of the file named infilename and signs them using the certificate and its matching private key specified by signcert and privkey parameters.
PKCS7_sign () creates and returns a PKCS#7 signedData structure. signcert is the certificate to sign with, pkey is the corresponsding private key. certs is an optional additional set of certificates to include in the PKCS#7 structure (for example any intermediate CAs in the chain).
headers est un tableau d'en-têtes qui seront ajoutés aux données chiffrées (voir la fonction openssl_pkcs7_encrypt () pour plus de détails sur le format du paramètre).
openssl_pkcs7_sign () takes the contents of the file named infilename and signs them using the certificate and its matching private key specified by signcert and privkey parameters.
Simple usage example of `openssl_pkcs7_sign ()`. The openssl_pkcs7_sign function in PHP is used to sign an S/MIME (Secure/Multipurpose Internet Mail Extensions) message. It adds a digital signature to the message using a private key and certificate, ensuring the authenticity and integrity of the message. This function is commonly used in applications that require secure email communication.
People also ask
How does openssl_pkcs7_sign work?
What is pkcs7_sign?
What if signcert and PKEY are null in OpenSSL?
What if a signer is specified in OpenSSL?
openssl_pkcs7_sign takes the contents of the file named input_filename and signs them using the certificate and its matching private key specified by certificate and private_key parameters.
