SetaPDF_Signer_Signature_Module_OpenSslCliCms A signature module which uses the CMS utility of OpenSSL via command line.
File: /SetaPDF v2/Signer/Signature/Module/OpenSslCliCms.php
The CMS utility is described here: http://www.openssl.org/docs/apps/cms.html.
The path to the signing certificate
The digest algorithm to use when signing
The path to the extra/other certificates
A path to additional certificates to be specified
A temporary path of the signed message
The path to the private key to use when signing
The private key password source
Create the signature.
This method creates a digital signature for the file available in $tmpPath and returns it in binary format.
- $tmpPath : SetaPDF_Core_Reader_FilePath
Set the path to a file with additional certificates which will be included in the signature.
If the certificates are saved in separate files, you will need to assemble them in one single file. Just copy them with a text editor one after another.
- $extraCertificates : null|string
Set the path to the private key file and password argument.
- $privateKey : array|string
An array of private key and password or only a private key.
- $password : null
Set the private key password source.
- $password : string