|
|
|
|
|
CertificateExtract (Function) In french: CertificatExtrait Extracts a certificate from a signature buffer or from a print duplicate. // Extract a certificate from the buffer MyCertificate is Certificate MyCertificate = CertificateExtract(buffSignature, certificateFromBuffer) Â // Checks whether the signature does not correspond // or whether the buffer is incorrect (details in ErrorInfo) IF MyCertificate = Null THEN Error("Error while retrieving the certificate." + CR + ErrorInfo()) RETURN END Â // Displays the trust level of the certificate SWITCH MyCertificate.Reliability CASE certificateOk: Info("Valid certificate") CASE certificateInvalid: Info("Invalid certificate") CASE certificateUntrusted: Info("Trust root of certificate not reliable") CASE certificateExpired: Info("Expired validation dates of certificate") END
Syntax
<Result> = CertificateExtract(<Signed Element> [, <Option>])
<Result>: Certificate variable Certificate variable extracted from the element containing the signature. <Signed Element>: Buffer variable or character string Corresponds to: - a signature buffer. This buffer was obtained via:
- the path of a signed print duplicate. The print duplicate was signed with iParameterDuplicate.
<Option>: Optional Integer constant Specifies the type of element used: | | certificateFromBuffer (Default value) | The element is a signature buffer. | certificateFromDuplicate | The element is the path of a signed duplicate file. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|