Retrieves the client certificate associated with the request.
[OUT] A pointer to an HTTP_SSL_CLIENT_CERT_INFO structure.
[OUT] true if the client certificate has been negotiated already; otherwise, false. For more information, see the Remarks section.
An HRESULT. Possible values include, but are not limited to, those in the following table.
Indicates that no error occurred, but does not guarantee that a certificate was found. For more information, see the Remarks section.
Indicates no client certificate was found. ERROR_NOT_FOUND is defined in Winerror.h.
Indicates that the ppClientCertInfo or pfClientCertNegotiated parameter is NULL.
A successful HRESULT does not guarantee that a client certificate was found. Developers must also verify that ppClientCertInfo is not NULL.
A pfClientCertNegotiated value of true does not guarantee that the ppClientCertInfo is not NULL.
Developers can use the GetClientCertificate method to retrieve the client certificate associated with the current request. After you call the GetClientCertificate method, the ppClientCertInfo parameter will contain a pointer to an HTTP_SSL_CLIENT_CERT_INFO structure, which will contain the client certificate if one is available or NULL if no certificate is available.
For URLs that do not require a client certificate, you can call the NegotiateClientCertificate method before you call GetClientCertificate to attempt a manual loading of the client certificate.