SMimeSigner
extends SMime
in package
Tags
Table of Contents
- $extraCerts : mixed
- $privateKeyPassphrase : string|null
- $signCertificate : mixed
- $signOptions : mixed
- $signPrivateKey : mixed
- __construct() : mixed
- sign() : Message
Properties
$extraCerts
private
mixed
$extraCerts
$privateKeyPassphrase
private
string|null
$privateKeyPassphrase
$signCertificate
private
mixed
$signCertificate
$signOptions
private
mixed
$signOptions
$signPrivateKey
private
mixed
$signPrivateKey
Methods
__construct()
public
__construct(string $certificate, string $privateKey[, string|null $privateKeyPassphrase = null ][, string|null $extraCerts = null ][, int|null $signOptions = null ]) : mixed
Parameters
- $certificate : string
-
The path of the file containing the signing certificate (in PEM format)
- $privateKey : string
-
The path of the file containing the private key (in PEM format)
- $privateKeyPassphrase : string|null = null
-
A passphrase of the private key (if any)
- $extraCerts : string|null = null
-
The path of the file containing intermediate certificates (in PEM format) needed by the signing certificate
- $signOptions : int|null = null
-
Bitwise operator options for openssl_pkcs7_sign() (@see https://secure.php.net/manual/en/openssl.pkcs7.flags.php)
Return values
mixed —sign()
public
sign(Message $message) : Message
Parameters
- $message : Message