ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Certificate functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CertificateSelect (Function)
In french: CertificatSélecteur
Opens a window for selecting the certificates. The listed certificates are the certificates installed in the personal store.
New in SaaS
Note Certificates present on a smart card are also listed.
Attention This feature is only available in WINDEV Suite SaaS 2025 Update 1. For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Example
MyCertificate is Certificate

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

// Cancellation 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 signature buffer
MyExtractedCertificate is Certificate
MyExtractedCertificate = CertificateExtract(buffSignature)

// Manage the 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).
Business / UI classification: UI Code
Component: wd300std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Video Certificado
https://youtu.be/bnmSeoo1Xg0
amarildo
14 Dec. 2018

Last update: 02/12/2025

Send a report | Local help