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
TrustedCertificateAdd (Function)
In french: CertificatDeConfianceAjoute
Adds a certificate to the list of trusted root authorities used to validate certification strings.
Caution: This action only applies to the current application. No additions are made in the Windows certificate stores.
Note: This function affects:
  • 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("MonCA.pem")
Syntax
<Result> = TrustedCertificateAdd(<Certificate>)
<Result>: Boolean
  • True if the addition was performed,
  • False if an error occurs.
<Certificate>: Character string
Path of the certificate file to add to the list of trusted root authorities.
Note: This file can be included in the application's library (WDL file).
Remarks
  • Certificates in cer, pem, der and p12 formats are supported.
  • TrustedCertificateAdd is taken into account by SocketConnectSSL only if the mode used for Socket functions supports OpenSSL (SocketConfigure):
    SocketConfigure(socketConfigureMode, 1)
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help