HttpClient Secure Protocol Error

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

HttpClient Secure Protocol Error

#1 Post 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.
The eXpress train is coming - and it has more cars.

k-insis
Posts: 100
Joined: Fri Jan 28, 2011 4:07 am

Re: HttpClient Secure Protocol Error

#2 Post 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.

Post Reply