次の方法で共有


SetClientCertificateById method of the BitsClientJob class

The SetClientCertificateById method sets the client certificate to use for client authentication in an HTTPS (SSL) request.

Syntax

uint32 SetClientCertificateById(
  [in] uint16 CertStoreLocation,
  [in] string StoreName,
  [in] uint8  CertHash[]
);

Parameters

CertStoreLocation [in]

Defines the location of the client certificate store. This parameter can be set to one of the following values:

Store Meaning
0
Use the current user's certificate store.
1
Use the local computer's certificate store.
2
Use the current service's certificate store.
3
Use a specific service's certificate store.
4
Use a specific user's certificate store.
5
Use the current user's Group Policy certificate store. In a network setting, stores in this location are downloaded to the client computer from the Group Policy template during computer startup or user logon.
6
Use the local computer's certificate store. In a network setting, stores in this location are downloaded to the client computer from the Group Policy template during computer startup or user logon.
7
Use the enterprise certificate store. The enterprise store is shared across domains in the enterprise and downloaded from the global enterprise directory.

StoreName [in]

A null-terminated string that contains the name of the certificate store.

CertHash [in]

Specifies the SHA1 hash that identifies the certificate.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
Redistributable
Windows Management Framework on Windows Server 2008 with SP2
Namespace
Root\microsoft\bits
Header
Bits2_5.h
MOF
BitsProvider.mof

See also

BitsClientJob