![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java JavaScript 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
(Lianja) Example: Crypt2.SetSigningCert methodDemonstrates how to call the SetSigningCert method.
// Signing certificates can be obtained from many different sources.. // Load from a PFX loCryptA = createobject("CkCrypt2") loCertA = createobject("CkCert") llSuccess = loCertA.LoadPfxFile("c:/someDir/pfx_files/a.pfx","pfx_file_password") llSuccess = loCryptA.SetSigningCert(loCertA) // ... // Load from a smart card or USB token. loCryptB = createobject("CkCrypt2") loCertB = createobject("CkCert") loCertB.SmartCardPin = "123456" llSuccess = loCertB.LoadFromSmartcard("") llSuccess = loCryptB.SetSigningCert(loCertB) // ... // Load from a the Windows certificate store or macOS keychain loCryptC = createobject("CkCrypt2") loCertC = createobject("CkCert") llSuccess = loCertC.LoadByCommonName("Xyz 123") llSuccess = loCryptC.SetSigningCert(loCertC) // ... release loCryptA release loCertA release loCryptB release loCertB release loCryptC release loCertC |
||||
© 2000-2026 Chilkat Software, Inc. All Rights Reserved.