Bitsadmin /setclientcertificatebyid

 

Updated: April 17, 2012

Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8

Specifies the identifier of the client certificate to use for client authentication in an HTTPS (SSL) request.

bitsadmin /SetClientCertificateByID <Job> <store_location> <store_name> hexa-decimal_cert_id>

Parameter

Description

Job

The job's display name or GUID

Store_location

Identifies the location of a system store to use for looking up the certificate. Possible values include:

1 (CURRENT_USER)

2 (LOCAL_MACHINE)

3 (CURRENT_SERVICE)

4 (SERVICES)

5 (USERS)

6 (CURRENT_USER_GROUP_POLICY)

7 (LOCAL_MACHINE_GROUP_POLICY)

8 (LOCAL_MACHINE_ENTERPRISE)

Store_name

The name of the certificate store. Possible values include:

CA (Certification Authority certificates)

MY (Personal certificates)

ROOT (Root certificates)

SPC (Software Publisher Certificate)

Hexadecimal_cert_id

A hexadecimal number representing the hash of the certificate

The following example specifies the identifier of the client certificate to use for client authentication in an HTTPS (SSL) request for the job named myJob.

C:\>bitsadmin Bitsadmin /SetClientCertificateByID myJob BG_CERT_STORE_LOCATION_CURRENT_USER MY A106B52356D3FBCD1853A41B619358BD 
Show: