Framework EDI Reference. Methods and Properties
ediSecurities. CreateTestCertificate

Creates an X.509 test certificate.

Syntax

<lretval> = object. CreateTestCertificate(<sTestCertificateFile>,<sSubjectName>, <sIssuerName>, <sKeyContainerName>, <KeyPairType>, [<sServiceProvider>], [< lProviderType>])

Parameters

Returns

Returns 1 if the certificate is created successfully; otherwise returns 0 if the operation failed.

Remarks

This method creates a certificate from the key container specified.  The public key of the key container is stored in the certificate and the CSP information -- service provider name, service provider type, key container name and the key pair type -- is stored in the certificate to associate the certificate to the key container.  This allows this certificate to perform operations that require the private key.

Note that the certificate does not get imported to the certificate store.  It must be imported into the certificate store using the ImportCertificate before it can be used.