ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2025 feature!
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
CertificatePEMToPFX (Function)
In french: CertificatPEMVersPFX
Converts a certificate in PEM format to a PFX file including the private key.
Example
CertificateFilePath is string = "C:\MyPath\MyCertificate.pem"
PrivateKeyFilePath is string = "C:\MyPath\MyPrivateKey.key"
PrivateKeyPassword is string = "Private_key_password"
PFXFilePath is string = "C:\MyPath\MyCertificate.pfx" // File to create

CertificatePEMToPFX(CertificateFilePath, PrivateKeyFilePath, PrivateKeyPassword, PFXFilePath)
Syntax
<Result> = CertificatePEMToPFX(<Certificate file> , <Private key file> , <Password of the private key> , <PFX file>)
<Result>: Boolean
  • True if the conversion has been completed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Certificate file>: Character string
Path to the public certificate to be converted ("pem" file).
<Private key file>: Character string
Private key file path.
<Password of the private key>: ANSI string or Secret string
Password for the file that contains the private key.
New in version 2025
Secret strings: The secret string can be of one of the following types: Ansi string - Latin, Ansi or Unicode string, Unicode string..
To learn more about secret strings and how to use the vault, see Secret string vault.
<PFX file>: Character string
Path of PFX file to be created. The extension must be specified in the file name.
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help