DOCUMENTATION EN LIGNE
DE WINDEVWEBDEV ET WINDEV MOBILE

Aide / WLangage / Fonctions WLangage / Fonctions standard / Fonctions de gestion des certificats
WINDEV
WindowsLinuxJavaEtats et RequêtesCode Utilisateur (MCU)
WEBDEV
WindowsLinuxPHPWEBDEV - Code Navigateur
WINDEV Mobile
AndroidWidget AndroidiPhone/iPadWidget IOSApple WatchMac Catalyst
Autres
Procédures stockées
Renvoie la liste des certificats disponibles sur le poste.
Remarques :
  • Nouveauté SaaS
    Les certificats présents sur une carte à puce sont également listés.
    Attention : Cette fonctionnalité est disponible uniquement à partir de WINDEV Suite SaaS 2025 Update 1. Pour plus de détails, consultez Utiliser les nouveautés de WINDEV Suite SaaS 2025.
  • La fonction HTTPListeCertificat liste uniquement les certificats ayant pour rôle "Authentification du client".
Exemple
// Récupération de la liste des certificats disponibles sur le poste
// (magasin personnel des certificats Windows)
tabCertificat est un tableau de Certificat
tabCertificat = CertificatListe()

// Parcours des certificats
UnCertificat est un Certificat
i est un entier
i = 1
POUR TOUT UnCertificat DE tabCertificat
	// Teste si le certificat est valide pour signer
	SI UnCertificat.ValidePourSignature = Vrai ALORS
		// Ajoute le certificat dans un champ Combo
		ListeAjoute(COMBO_CHOIXCERTIFICAT, UnCertificat.Nom + ...
				 "(" + UnCertificat.Emetteur + ")" + gValeurMémorisée(i))
		i++
	FIN
FIN
Syntaxe
<Résultat> = CertificatListe([<Emplacement du magasin> [, <Nom du magasin>]])
<Résultat> : Tableau de variables de type Certificat
Nom du tableau de variables de type Certificat contenant la liste des certificats disponibles sur le poste.
<Emplacement du magasin> : Constante optionnelle de type Entier
Emplacement du magasin de certificats dans lequel les certificats doivent être récupérés :
certMagasinMachineLocaleEmplacement correspondant :
HKEY_LOCAL_MACHINE/Software/Microsoft/
SystemCertificates
certMagasinMachineLocaleEntrepriseEmplacement correspondant :
Chargé depuis les domaines de l'entreprise.
certMagasinServiceCourantEmplacement correspondant :
HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/
Services/ServiceName/SystemCertificates
certMagasinServicesEmplacement correspondant :
HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/
Services/ServiceName/SystemCertificates
certMagasinStratégieMachineLocaleEmplacement correspondant : HKEY_LOCAL_MACHINE/Software/Policy/Microsoft/
SystemCertificates
certMagasinStratégieUtilisateurCourantEmplacement correspondant : HKEY_CURRENT_USER/Software/Policy/Microsoft/
certMagasinUtilisateurCourant
(Valeur par défaut)
Emplacement correspondant : HKEY_CURRENT_USER/Software/Microsoft/
SystemCertificates
certMagasinUtilisateursEmplacement correspondant : HKEY_USERS/UserName/Software/Microsoft/
SystemCertificates

Remarque : Ces constantes ne peuvent pas être combinées.
<Nom du magasin> : Chaîne de caractères optionnelle ou constante optionnelle
Nom du magasin dans lequel les certificats doivent être récupérés. Ce paramètre peut correspondre :
  • à une chaîne de caractères,
  • à une des constantes suivantes :
    certAutoritéMagasin des autorités de certification.
    certConfianceMagasin de confiance.
    certPersonnel
    (Valeur par défaut)
    Magasin personnel.
    certRacineMagasin des racines

Remarque : Ces constantes ne peuvent pas être combinées.
Classification Métier / UI : Code métier
Composante : wd300prn.dll
Version minimum requise
  • Version 16
Documentation également disponible pour…
Commentaires
Cliquez sur [Ajouter] pour publier un commentaire

Dernière modification : 10/02/2025

Signaler une erreur ou faire une suggestion | Aide en ligne locale