|
|
|
|
CertificatListe (Fonction) En anglais : CertificateList Renvoie la liste des certificats disponibles sur le poste. Remarque : La fonction HTTPListeCertificat liste uniquement les certificats ayant pour rôle "Authentification du client".
// Récupération de la liste des certificats disponibles sur le poste // (magasin personnel des certificats Windows) tabCertificat est un tableau de Certificats 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 :
| | certMagasinMachineLocale | Emplacement correspondant : HKEY_LOCAL_MACHINE/Software/Microsoft/ SystemCertificates | certMagasinMachineLocaleEntreprise | Emplacement correspondant : Chargé depuis les domaines de l'entreprise. | certMagasinServiceCourant | Emplacement correspondant : HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/ Services/ServiceName/SystemCertificates | certMagasinServices | Emplacement correspondant : HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/ Services/ServiceName/SystemCertificates | certMagasinStratégieMachineLocale | Emplacement correspondant : HKEY_LOCAL_MACHINE/Software/Policy/Microsoft/ SystemCertificates | certMagasinStratégieUtilisateurCourant | Emplacement correspondant : HKEY_CURRENT_USER/Software/Policy/Microsoft/ | certMagasinUtilisateurCourant (Valeur par défaut) | Emplacement correspondant : HKEY_CURRENT_USER/Software/Microsoft/ SystemCertificates | certMagasinUtilisateurs | Emplacement correspondant : HKEY_USERS/UserName/Software/Microsoft/ SystemCertificates |
<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. | certConfiance | Magasin de confiance. | certPersonnel (Valeur par défaut) | Magasin personnel. | certRacine | Magasin des racines |
Classification Métier / UI : Code métier Composante : wd270prn.dll
Documentation également disponible pour…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|