GetServiceCertificateDER
Security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Returns one DER-encoded certificate of a trust service in the state that was current at VerificationTime. Past times are answered from the recorded service history, so a certificate that was later withdrawn is still returned for the time it was in effect. Passing zero uses the current time.
The state is selected first; if no state of the service covers the requested time, or CertificateIndex is out of range for that state, the call fails.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.GetServiceCertificateDER(ServiceIndex, CertificateIndex: Integer;
VerificationTime: TDateTime;
Out CertificateDER: AnsiString): Boolean;Parameters
| ServiceIndex | Zero-based service index; must be below GetServiceCount |
|---|---|
| CertificateIndex | Zero-based index into the certificates of the selected state |
| VerificationTime | Point in time the state is selected for; zero means now |
| CertificateDER | Receives the DER encoding; set to empty before the checks |
Return values
| True | CertificateDER holds the requested certificate of the state current at the requested time |
|---|---|
| False | The service index is out of range, no state covers the time, or the certificate index is out of range |