![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Example: Crypt2.AddPfxSourceFile methodDemonstrates how to call the AddPfxSourceFile method.
integer li_rc oleobject loo_Crypt integer li_Success string ls_PfxPath string ls_PfxPassword loo_Crypt = create oleobject // Use "Chilkat_9_5_0.Crypt2" for versions of Chilkat < 10.0.0 li_rc = loo_Crypt.ConnectToNewObject("Chilkat.Crypt2") if li_rc < 0 then destroy loo_Crypt MessageBox("Error","Connecting to COM object failed") return end if li_Success = 0 // Do public-key decryption (RSA) loo_Crypt.CryptAlgorithm = "pki" // ... // ... // ... ls_PfxPath = "c:/my_pfx_files/a.pfx" ls_PfxPassword = "secret1" li_Success = loo_Crypt.AddPfxSourceFile(ls_PfxPath,ls_PfxPassword) if li_Success = 0 then Write-Debug loo_Crypt.LastErrorText destroy loo_Crypt return end if // Add as many as PFX sources as desired... ls_PfxPath = "c:/my_pfx_files/b.pfx" ls_PfxPassword = "secret2" li_Success = loo_Crypt.AddPfxSourceFile(ls_PfxPath,ls_PfxPassword) if li_Success = 0 then Write-Debug loo_Crypt.LastErrorText destroy loo_Crypt return end if // ... // ... destroy loo_Crypt |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.