PHP ActiveX
PHP ActiveX
Example: Crypt2.AddPfxSourceFile method
Demonstrates how to call the AddPfxSourceFile method.Chilkat PHP ActiveX Downloads
<?php
$success = 0;
$crypt = new COM("Chilkat.Crypt2");
$success = 0;
// Do public-key decryption (RSA)
$crypt->CryptAlgorithm = 'pki';
// ...
// ...
// ...
$pfxPath = 'c:/my_pfx_files/a.pfx';
$pfxPassword = 'secret1';
$success = $crypt->AddPfxSourceFile($pfxPath,$pfxPassword);
if ($success == 0) {
print $crypt->LastErrorText . "\n";
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 == 0) {
print $crypt->LastErrorText . "\n";
exit;
}
// ...
// ...
?>