Opens a window for selecting the certificates. The listed certificates are the certificates installed in the personal store.
MyCertificate is Certificate
// Open the certificate picker of Windows
MyCertificate = CertificateSelect()
// Cancelation or error
IF MyCertificate.Name = "" THEN
// 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.")
// Retrieve the buffer containing the signature
bufSignature is Buffer
bufSignature = CertificateSignString("Character string to sign", MyCertificate)
// Retrieve the certificate found in the signature buffer
MyExtractedCertificate is Certificate
MyExtractedCertificate = CertificateExtract(buffSignature)
// Manage the errors
IF MyExtractedCertificate = Null THEN
// Open the window for certificate properties
<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).
Business / UI classification: UI Code