JavaScript Functions > Alphabetical Listing of Web Functions > web.setCertificate

web.setCertificate

Causes a script to use a specific certificate that is listed in the Internet Explorer registry.

Syntax

web.setCertificate( certificateNumber ); 
Property Name
Description
certificateNumber
The number of the certificate within the list of certificates in Internet Explorer. The number is passes as a string, for example: ("3").

Return Values

Not applicable

Parameterization

The following argument(s) can be parameterized using standard parameterization: certificateNumber

General Information

web.setCertificate specifies the number of a certificate within the list of certificates. The specified certificate is then used whenever a secure Web server requires the client to present a certificate.

When installing a certificate with private key in Internet Explorer, if you choose strong private key protection, you can set the security level of this certificate. The default is medium. The socket mode cannot handle high level security with the certificateNumber parameter. If you do not use certificateNumber, the security level can be high but then you must provide the certificate password.

The Wininet mode only handles the low security level.

Example

web.setCertificate("2");