Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstPdfVerifier.ExtKeyUsagePolicy

property ExtKeyUsagePolicy: tExtKeyUsagePolicy read fExtKeyUsagePolicy write fExtKeyUsagePolicy default ekupIgnore;
ExtKeyUsagePolicy decides whether the SIGNER's certificate is checked for the id_kp_documentSigning key purpose (RFC 9336).

The default is ekupIgnore, which is what this component has always done: upgrading does not turn a document that verified yesterday into one that does not. ekupAllowUnconstrained is the recommended setting for a new deployment - it accepts a certificate that states no purpose, and refuses one that states only other purposes. ekupRequire additionally insists the extension be present, which is a stricter line than most issuers currently meet.

A rejection here makes the signature pssInvalid; OnKeyUsageRejected can overrule it.