ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Certificate functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
TrustedCertificateAdd (Function)
In french: CertificatDeConfianceAjoute
Adds a certificate to the list of trusted root authorities used to validate certification strings.
Caution: This addition is made for the current application. No additions are made in the Windows certificate stores.
Remark: This function has an impact on:
  • HTTP requests that use httpRequest variables,
  • File management by FTPS,
  • SSL sockets,
  • MQTT via SSL,
  • the verification of signatures (2nd syntax of CertificateCheckString).
Example
TrustedCertificateAdd("MyAC.pem")
Syntax
<Result> = TrustedCertificateAdd(<Certificate>)
<Result>: Boolean
  • True if the addition was performed,
  • False if an error occurred.
<Certificate>: Character string
Path of the certificate file to add to the list of trusted root authorities.
Remark: This file can be included in the application's library (WDL file).
Remarks
Certificates in cer, pem, der and p12 formats are supported.
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help