Framework EDI Reference. Methods and Properties
ediSecurityCertificate. UpdateCSP

Associates the certificate in the certificate store to a Cryptographic Service Provider (CSP) key container.

Syntax:

 Parameter:

Returns:

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

 Remarks:

The UpdateCSP method attempts to associate the certificate with the key container specified. The public key in the certificate has to match the public key part of the public/private key pair of either the Key Exchange or Signature keys of the key container for the update to succeed.

If successful, the private key of the key container is used to sign or decrypt data wherever the certificate has been referenced for that purpose.