C#
C#
Example: Crypt2.AddPfxSourceFile method
Demonstrates how to call the AddPfxSourceFile method.Chilkat C# Downloads
bool success = false;
Chilkat.Crypt2 crypt = new Chilkat.Crypt2();
success = false;
// Do public-key decryption (RSA)
crypt.CryptAlgorithm = "pki";
// ...
// ...
// ...
string pfxPath = "c:/my_pfx_files/a.pfx";
string pfxPassword = "secret1";
success = crypt.AddPfxSourceFile(pfxPath,pfxPassword);
if (success == false) {
Debug.WriteLine(crypt.LastErrorText);
return;
}
// 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) {
Debug.WriteLine(crypt.LastErrorText);
return;
}
// ...
// ...