sKeyContainerName - Name of the new key container. The name
of the key container has to be unique within the Service Provider it is
added to.
sServiceProvider - Optional. Name of the Service Provider
that the new key container is added to. The Service Provider has to be
existing in the system already. If none is specified then the default
Service Provider is used.
lProviderType - Optional. The type of the Service Provider
that the key container is being added to. If none is specified then
the default service provider type is used. If the Service Provider
name has been specified then the service provider type of that service
provider is used. For the list of possible provider types please see Cryptographic
Service Provider Type Constants.
Returns:
Returns 1 if the task was successful.Otherwise it returns 0.
Remarks:
When a new key container is added, the public/private key pairs for both the
Key Exchange and the Signature keys are created.
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