Sample code for 30+ languages & platforms
Chilkat2-Python

Example: Crypt2.AddPfxSourceFile method

Demonstrates how to call the AddPfxSourceFile method.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import sys
import chilkat2

success = False

crypt = chilkat2.Crypt2()
success = False

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

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

pfxPath = "c:/my_pfx_files/a.pfx"
pfxPassword = "secret1"
success = crypt.AddPfxSourceFile(pfxPath,pfxPassword)
if (success == False):
    print(crypt.LastErrorText)
    sys.exit()

# Add as many as PFX sources as desired...
pfxPath = "c:/my_pfx_files/b.pfx"
pfxPassword = "secret2"
success = crypt.AddPfxSourceFile(pfxPath,pfxPassword)
if (success == False):
    print(crypt.LastErrorText)
    sys.exit()

# ...
# ...