Re: How Do I Set SNI(Server Name Indentification)

2023-08-10 Thread Petar Tahchiev
Hi Jochen, I don't have 2 different SSL certificates. I have no idea what SNI is but that seems to be the only difference in the log from curl and httpclient5. This is from curl:

Re: How Do I Set SNI(Server Name Indentification)

2023-08-10 Thread Jochen Wiedmann
Hi, Petar, looking through https://tomcat.apache.org/tomcat-9.0-doc/config/http.html I get the impression, that SNI is a server-side issue. So, the actual problem may be on the server side, rather than the client side. To begin with: Do you really need two different SSL certificates within

Re: How Do I Set SNI(Server Name Indentification)

2023-08-10 Thread Petar Tahchiev
Hmm, I tried now setting the Host header: httpGet.setHeader("Host", "localhost"); yet tomcat still logs null for SNI На чт, 10.08.2023 г. в 22:21 ч. Jochen Wiedmann написа: > On Thu, Aug 10, 2023 at 9:14 PM Petar Tahchiev > wrote: > > > I found this gist which tells how to provide a SNI:

Re: How Do I Set SNI(Server Name Indentification)

2023-08-10 Thread Jochen Wiedmann
On Thu, Aug 10, 2023 at 9:14 PM Petar Tahchiev wrote: > I found this gist which tells how to provide a SNI: > > https://gist.github.com/jkuipers/e0b35c21c466a9b4d88a > > but it is for HttpClient4 and I am unable to migrate the code to > HttpClient5. >From looking at the gist, all that it does

How Do I Set SNI(Server Name Indentification)

2023-08-10 Thread Petar Tahchiev
Hello, I am facing a very weird issue. I have a project that uses HttpClient4 to make a simple GET request to Apache Tomcat. It was all working fine. Now I need to upgrade to HttpClient5. I managed to upgrade very easy - just a small package renames. However when I make the same request the