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
Returns the list of certificates available on the computer.
WEBDEV - Server code Returns the list of certificates available on the server.
Remarque: The HTTPListCertificate function only lists certificates with the "Customer authentication" role..
Example
// Récupération de la liste des certificats disponibles sur le poste
// (magasin personnel des certificats Windows)
tabCertificat is array of Certificate
tabCertificat = CertificateList()

// Parcours des certificats
UnCertificat is Certificate
i is int
i = 1
FOR EACH UnCertificat OF tabCertificat
	// Teste si le certificat est valide pour signer
	IF UnCertificat.ValidForSignature = True THEN
		// Ajoute le certificat dans un champ Combo
		ListAdd(COMBO_CHOIXCERTIFICAT, UnCertificat.Name + ...
				 "(" + UnCertificat.Issuer + ")" + gStoredValue(i))
		i++
	END
END
Syntax
<Result> = CertificateList([<Store location> [, <Store name>]])
<Result>: Array of Certificate variables
Name of the array of Certificate variables that contains the list of certificates available on the computer.
<Store location>: Optional Integer constant
Location of the certificate store where certificates are to be retrieved:
certLocalMachineStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/
SystemCertificates
certLocalMachineStoreEnterpriseCorresponding location:
Loaded from the enterprise domains.
certCurrentServiceStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/
Services/ServiceName/SystemCertificates
certServiceStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/
Services/ServiceName/SystemCertificates
certLocalMachineStorePolicyCorresponding location: HKEY_LOCAL_MACHINE/Software/Policy/Microsoft/
SystemCertificates
certCurrentUserStorePolicyCorresponding location: HKEY_CURRENT_USER/Software/Policy/Microsoft/
certCurrentUserStore
(Default value)
Corresponding location: HKEY_CURRENT_USER/Software/Microsoft/
SystemCertificates
certUsersStoreCorresponding location: HKEY_USERS/UserName/Software/Microsoft/
SystemCertificates

Note: These constants cannot be combined..
<Store name>: Optional character string or optional constant
Name of the store where certificates are to be retrieved. This parameter can correspond to:
  • a character string,
  • one of the following constants:
    certAuthorityCertification authority store.
    certTrustTrusted store.
    certPersonal
    (Default value)
    Personal store.
    certRootRoot store

Note: These constants cannot be combined..
Business / UI classification: Business Logic
Component: wd300prn.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/14/2024

Send a report | Local help