Exports the Public/Private key pair from Cryptographic Service Provider (CSP) key container to a file.
Syntax:
<lretval> = object. ExportExchangeKeyPair(<sExportFileName>,<sPassword>, [<sKeyContainer>], [<sServiceProvider>], [< lProviderType>])
Parameters:
Returns
Returns 1 if the task was successful. Otherwise it returns 0.
Example:
Set oSecurities = oEdiDoc.GetSecurities
' Creates a new key container for hypothetical trading partner.
oSecurities.DeleteKeyContainer sKeyContainerName
oSecurities.CreateKeyContainer sKeyContainerName
'Export private and public key container to a file
oSecurities.ExportExchangeKeyPair sExportFileName, sPassword, sKeyContainerName, sProviderName