PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the list of certificates available on the computer.
WEBDEV - Server code Returns the list of certificates available on the server.
Remark: HTTPListCertificate only lists certificates with a "Client authentication" role.
Example
// Retrieve the list of certificates available on the computer
// (personal Windows certificate store)
arrCertificate is array of Certificates
arrCertificate = CertificateList()
 
// Browse the certificates
ACertificate is Certificate
i is int
i = 1
FOR EACH ACertificate OF arrCertificate
// Checks whether the certificate is valid for signing
IF ACertificate.ValidForSignature = True THEN
// Adds the certificate into a Combo Box control
ListAdd(COMBO_CERTIFICATECHOICE, ACertificate..Name + ...
 "(" + ACertificate.Issuer + ")" + gLink(i))
i++
END
END
Syntax
<Result> = CertificateList([<Store Location> [, <Name of the store>]])
<Result>: Array of Certificate variables
Name of array of Certificate variables containing the list of certificates available on the computer.
<Store Location>: Optional Integer constant
Versions 26 and later
Location of the certificate store where certificates are to be retrieved:
certLocalMachineStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/SystemCertificates
certLocalMachineStoreEnterpriseCorresponding location:
In charge from the company's 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
New in version 26
Location of the certificate store where certificates are to be retrieved:
certLocalMachineStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/SystemCertificates
certLocalMachineStoreEnterpriseCorresponding location:
In charge from the company's 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
Location of the certificate store where certificates are to be retrieved:
certLocalMachineStoreCorresponding location:
HKEY_LOCAL_MACHINE/Software/Microsoft/SystemCertificates
certLocalMachineStoreEnterpriseCorresponding location:
In charge from the company's 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
<Name of the store>: Optional character string or optional constant
Versions 26 and later
Name of the store from which the 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 Shop
New in version 26
Name of the store from which the 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 Shop
Name of the store from which the 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 Shop
Business / UI classification : Business Logic
Component : wd260prn.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment