Sample code for 30+ languages & platforms
C#

Example: Crypt2.AddPfxSourceBd method

Demonstrates how to call the AddPfxSourceBd method.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.Crypt2 crypt = new Chilkat.Crypt2();
success = false;

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

// ...
// ...
// ...

Chilkat.BinData bdPfx = new Chilkat.BinData();
success = bdPfx.LoadFile("c:/my_pfx_files/a.pfx");
// ...

string pfxPassword = "secret1";
success = crypt.AddPfxSourceBd(bdPfx,pfxPassword);
if (success == false) {
    Debug.WriteLine(crypt.LastErrorText);
    return;
}

// 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) {
    Debug.WriteLine(crypt.LastErrorText);
    return;
}

// ...
// ...