FetchRevocationMaterial

Digital signatures

Description

Downloads validation material from an address a certificate names.

Syntax

Delphi

Function TPDFlib.FetchRevocationMaterial(Const URL: WideString): AnsiString;

Parameters

URLAn http or https address, typically one returned by GetCertificateCRLURLs or GetCertificateIssuerURLs.

Return values

MaterialThe bytes exactly as served.
Empty stringThe download failed; GetTimeStampError carries the reason.

Remarks

The timeout is the one set by SetTimeStampOptions. Responses are capped at 8 MB, which is far above any real CRL, so a misconfigured endpoint cannot exhaust memory.

Example

URLs:= PDF.GetCertificateCRLURLs(CertDER);
CRL:= PDF.FetchRevocationMaterial(Copy(URLs, 1, Pos(#13, URLs+ #13)- 1));

See also

AddPAdESDSSCRLFromURL, AddPAdESDSSCertificateFromURL