Sets the certificate, at the specified location, of this object. The certificate specified will be used for private key operation.
Syntax:
Parameters:
- sName – Subject name of the certificate.
- sCertStoreLocation – Certificate store location.
- sCertSystemStoreName – Name of the certificate store that contains the certificate.
- sServiceProvider – Optional. Cryptographic Service Provider used for security services.
- lProviderType – Optional. Cryptographic Service Provider type.
Returns:
Returns 1 if the operation is successful; otherwise the operation returns zero.
Remarks:
The certificate specified is used for private key operation (decrypting and signing), and therefore it must be associated to a private key. The private key is normally stored in a key container database of the default Cryptographic Service Provider (CSP), or that specified by the sServiceProvider and lProviderType parameter. The same CSP will also be used for security operations.