AutoIt
AutoIt
Example: Crypt2.AddPfxSourceFile method
Demonstrates how to call the AddPfxSourceFile method.Chilkat AutoIt Downloads
Local $bSuccess = False
$oCrypt = ObjCreate("Chilkat.Crypt2")
$bSuccess = False
; Do public-key decryption (RSA)
$oCrypt.CryptAlgorithm = "pki"
; ...
; ...
; ...
Local $sPfxPath = "c:/my_pfx_files/a.pfx"
Local $sPfxPassword = "secret1"
$bSuccess = $oCrypt.AddPfxSourceFile($sPfxPath,$sPfxPassword)
If ($bSuccess = False) Then
ConsoleWrite($oCrypt.LastErrorText & @CRLF)
Exit
EndIf
; Add as many as PFX sources as desired...
$sPfxPath = "c:/my_pfx_files/b.pfx"
$sPfxPassword = "secret2"
$bSuccess = $oCrypt.AddPfxSourceFile($sPfxPath,$sPfxPassword)
If ($bSuccess = False) Then
ConsoleWrite($oCrypt.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...