PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Extracts a certificate from a signature buffer or from a print duplicate.
Example
// 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:
<Option>: Optional Integer constant
Specifies the type of element used:
certificateFromBuffer
(Default value)
The element is a signature buffer.
certificateFromDuplicateThe element is the path of a signed duplicate file.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment