Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstAbstractOcsp.ValidateStapledResponse

function ValidateStapledResponse(const aCert, aIssuer: iCertificate; const aStapleDER: OctetString): tOcspCertStatus; virtual;
ValidateStapledResponse checks a PRE-FETCHED OCSP response (e.g. one a TLS server stapled into its Certificate flight) for aCert against its issuer aIssuer. Unlike CheckCertificate it does NO network exchange and expects NO nonce: it parses aStapleDER, verifies the signature (subject to RequireSignatureCheck), the CertID match and the thisUpdate/nextUpdate freshness window, and returns the status. Returns csError when the staple is absent, malformed, not for aCert, stale, or (with RequireSignatureCheck) unsigned/unauthorized - the caller then falls back to a live query.