Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstMPSignedData.IncludeCertificates

property IncludeCertificates;
Producer side: when True (the default), the SignedData carries the signer's certificate - and, subject to IncludeRootCertificate, the rest of its chain - in the OPTIONAL certificates field of RFC 5652. Set it False to omit that field entirely, which is legal and leaves the SignerInfo's sid as the only thing naming the signer.

Two reasons to want that. The certificate can be several kilobytes, dwarfing a short message, and a verifier that already holds it gains nothing from a second copy. And the certificate NAMES THE SIGNER: where the point of a protocol is that nobody but the reader learns who wrote a message, carrying one inside the signature hands that away to anyone who gets the bytes.

The cost is that a verifier which does not already have the signer's certificate cannot get it from the message. It must look it up - and if it cannot, verification fails with CertificateNotFound rather than silently succeeding.