PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Loads a certificate from a file or from a buffer.
Example
// Load from a file
arrCertificate is array of Certificates
MyCertificate is Certificate

arrCertificate = CertificateLoad("MyCertificate.cer", "MyPassword")
MyCertificate = arrCertificate[1]
Syntax

Loading the certificate from a file Hide the details

<Result> = CertificateLoad(<Certificate File> , <Password>)
<Result>: Array of Certificates
Name of array of Certificate variables containing the loaded certificates.
<Certificate File>: Character string (with quotes)
Path of file containing the certificate to load.
This file can contain:
  • a PKCS#12 certificate of the "Public-Key Cryptography Standards" family. In most cases, the extension of these files is ".p12" or ".cer".
  • a certificate in PFX format (predecessor to the PKCS#12 format). In most cases, the extension of these files is ".pfx".
Versions 23 and later
Note: If the certificate path is not specified, the certificate will be sought in the project library.
New in version 23
Note: If the certificate path is not specified, the certificate will be sought in the project library.
Note: If the certificate path is not specified, the certificate will be sought in the project library.
<Password>: Character string (with quotes)
Password of certificate.

Loading the certificate from a buffer Hide the details

<Result> = CertificateLoad(<Buffer> , <Password>)
<Result>: Array of Certificates
Name of array of Certificate variables containing the loaded certificates.
<Buffer>: Buffer variable
Buffer containing the certificate data.
<Password>: Character string (with quotes)
Password of certificate.
Remarks
  • The certificate does not have to be found in the Windows store.
  • This function can be used to load the certificate used by SocketConnectSSL and NotifPushSend.
  • Versions 23 and later
    The certificate can be included in the project library (WDL file).
    New in version 23
    The certificate can be included in the project library (WDL file).
    The certificate can be included in the project library (WDL file).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment