Framework EDI Reference. Methods and Properties
ediSecurityKeyContainer. ExportPublicKey

Exports the public key of one of the key pair to a file.

Syntax:

Parameters:

Returns

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

Remarks

The Cryptographic Service Provider (CSP) key container contains two key pairs:
1. Exchange Key Pair for encrypting.
2. Signature Key Pair for authenticating.

The file contains the actual BLOB extracted from the key container by the CSP.