Sample code for 30+ languages & platforms
CkPython

Example: Crypt2.AddPfxSourceBd method

Demonstrates how to call the AddPfxSourceBd method.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

success = False

crypt = chilkat.CkCrypt2()
success = False

# Do public-key decryption (RSA)
crypt.put_CryptAlgorithm("pki")

# ...
# ...
# ...

bdPfx = chilkat.CkBinData()
success = bdPfx.LoadFile("c:/my_pfx_files/a.pfx")
# ...

pfxPassword = "secret1"
success = crypt.AddPfxSourceBd(bdPfx,pfxPassword)
if (success == False):
    print(crypt.lastErrorText())
    sys.exit()

# 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):
    print(crypt.lastErrorText())
    sys.exit()

# ...
# ...