Chilkat2-Python
Chilkat2-Python
Example: Crypt2.AddPfxSourceBd method
Demonstrates how to call the AddPfxSourceBd method.Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
crypt = chilkat2.Crypt2()
success = False
# Do public-key decryption (RSA)
crypt.CryptAlgorithm = "pki"
# ...
# ...
# ...
bdPfx = chilkat2.BinData()
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()
# ...
# ...