Sets the certificate, at the specified location, of this object. The certificate specified will be used for public 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 public key operation (encrypting and verifying), and does not have to be associated to a private key.