Framework EDI Reference. Methods and Properties
ediSecurityCertificate. DecryptFile

Decrypt a file.

Syntax:

Parameters:

 

Returns:

Returns 1 if the operation is successful; otherwise the operation returns zero.

Remarks:

For the certificate to decrypt a file, the certificate uses the private key that it has been associated to.  The association to the private key is required because the certificate does not hold the private key -- only the public key.  To associate a certificate to a private key in the Cryptographic Service Provider key container, invoke the methods UpdateCSP or DetermineCSP.