Sample code for 30+ languages & platforms
Visual Basic 6.0

Example: Crypt2.AddPfxSourceBd method

Demonstrates how to call the AddPfxSourceBd method.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim crypt As New ChilkatCrypt2
success = 0

' Do public-key decryption (RSA)
crypt.CryptAlgorithm = "pki"

' ...
' ...
' ...

Dim bdPfx As New ChilkatBinData
success = bdPfx.LoadFile("c:/my_pfx_files/a.pfx")
' ...

Dim pfxPassword As String
pfxPassword = "secret1"
success = crypt.AddPfxSourceBd(bdPfx,pfxPassword)
If (success = 0) Then
    Debug.Print 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 = 0) Then
    Debug.Print crypt.LastErrorText
    Exit Sub
End If

' ...
' ...