API / Minn\Mail / Smime

Smime final class

Minn\Mail\Smime · public/minn/src/Minn/Mail/Smime.php · 27 lines

S/MIME signing of a composed MIME entity with a certificate and key on disk: the entity goes through OpenSSL as a detached signature and comes back as new MIME headers (multipart/signed) and the signed body.

Uses 1

Public

staticsign(string $entity, string $cert, string $key, string $passphrase, string $extraCerts): ?array#

The signed entity's MIME headers and body, or null when signing fails.

@return array{0: string, 1: string}|null