Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetClientCertificateByName method sets the client certificate to use for client authentication in an HTTPS (SSL) request.
Syntax
uint32 SetClientCertificateByName(
[in] uint16 CertStoreLocation,
[in] string StoreName,
[in] string SubjectName
);
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.
-
SubjectName [in]
-
A null-terminated string that contains the simple subject name of 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 |
|
MOF |
|