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
Opens a window for selecting the certificates. The listed certificates are the certificates installed in the personal store.
Example
MyCertificate is Certificate

// Open the certificate picker of Windows
MyCertificate = CertificateSelect()

// Cancelation or error
IF MyCertificate..Name = "" THEN
RETURN
END
// Checks whether the selected certificate is valid for signing
IF MyCertificate..ValidForSignature = False THEN
Info("The selected certificate cannot be used to generate a signature.")
RETURN
END

// Retrieve the buffer containing the signature
bufSignature is Buffer
bufSignature = CertificateSignString("Character string to sign", MyCertificate)

// Retrieve the certificate found in the buffer of the signature
MyExtractedCertificate is Certificate
MyExtractedCertificate = CertificateExtract(buffSignature)

// Management of errors
IF MyExtractedCertificate = Null THEN
RETURN
END

// Open the window for certificate properties
CertificateOpenProperties(MyExtractedCertificate)
Syntax
<Certificate> = CertificateSelect()
<Certificate>: Certificate variable
Name of the Certificate variable to initialize.
If the selection window was validated, the Certificate variable is initialized with the values corresponding to the selected certificate.
If the selection window was canceled, the Certificate variable contains an empty certificate (its name is not filled for example).
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment