Page 1 of 1

HttpClient Secure Protocol Error

Posted: Fri Jun 23, 2023 6:25 am
by rdonnay
Has anyone used HttpClient with Https ?

I can connect to my https server with a web browser but not with HttpClient.

I'm using the same .PFX certificate with HttpClient as with HttpEndpoint.

I have tried all the 'secure-protocol' options available to the client to no avail.

ERROR_WINHTTP_SECURE_FAILURE is returned.

Re: HttpClient Secure Protocol Error

Posted: Mon Jun 26, 2023 1:28 am
by k-insis
This might be TLS version related.

Is https server configured to TLS 1.3 only or it also allows older TLS 1.2 too ?


rdonnay wrote: Fri Jun 23, 2023 6:25 am Has anyone used HttpClient with Https ?

I can connect to my https server with a web browser but not with HttpClient.

I'm using the same .PFX certificate with HttpClient as with HttpEndpoint.

I have tried all the 'secure-protocol' options available to the client to no avail.

ERROR_WINHTTP_SECURE_FAILURE is returned.