VB.NET
VB.NET
Example: Crypt2.AddPfxSourceBd method
Demonstrates how to call the AddPfxSourceBd method.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim crypt As New Chilkat.Crypt2
success = False
' Do public-key decryption (RSA)
crypt.CryptAlgorithm = "pki"
' ...
' ...
' ...
Dim bdPfx As New Chilkat.BinData
success = bdPfx.LoadFile("c:/my_pfx_files/a.pfx")
' ...
Dim pfxPassword As String = "secret1"
success = crypt.AddPfxSourceBd(bdPfx,pfxPassword)
If (success = False) Then
Debug.WriteLine(crypt.LastErrorText)
Exit Sub
End If
' Add as many as PFX sources as desired...
success = bdPfx.LoadFile("c:/my_pfx_files/b.pfx")
pfxPassword = "secret2"
success = crypt.AddPfxSourceBd(bdPfx,pfxPassword)
If (success = False) Then
Debug.WriteLine(crypt.LastErrorText)
Exit Sub
End If
' ...
' ...