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 on a bullet card are also listed.
Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 1. For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Example
MonCertificat is Certificate

// Ouverture du sélecteur de certificat de Windows
MonCertificat = CertificateSelect()

// Annulation ou erreur
IF MonCertificat.Name = "" THEN
	RETURN
END
// Teste si le certificat sélectionné est valide pour signer
IF MonCertificat.ValidForSignature = False THEN
	Info("Le certificat sélectionné ne permet de pas de générer une signature.")
	RETURN
END

// Récupération du buffer contenant la signature
bufSignature is Buffer
bufSignature = CertificateSignString("Chaîne de caractères à signer", MonCertificat)

// Récupération du certificat contenu dans le buffer de la signature
MonCertificatExtrait is Certificate
MonCertificatExtrait = CertificateExtract(bufSignature)

// Gestion des erreurs
IF MonCertificatExtrait = Null THEN
	RETURN
END

// Ouverture de la fenêtre des propriétés du certificat
CertificateOpenProperties(MonCertificatExtrait)
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: 03/27/2025

Send a report | Local help