0

I have a java based application. It tries to connect a web server through HTTPS. But, it fails in very first step of hand shake. I took tcp trace. I also check connection via browser. Browser connects successfully, even java fails. I took its tcp trace too. I checked the difference. Even they both uses TLSv1.2, their "Client Hello" messages are different. Java one uses "SSL Record Layer", browser uses "TLSv1.2 Record Layer" for "Client Hello" message.

Here screenshots of tcp dumps.

Java: enter image description here

and, detailed message of package of java

enter image description here

and, browser:

enter image description here

and, detailed message of package of browser

enter image description here

Some versions informations:

Java version is 8 (source application, working in 10.x.x.170) Java application is working in JBoss 6.4 (source application) Web application works under IIS (Windows Server 2012, working in 10.x.x.171)

Question: How can I force java application to use same protocol with browser (browser looks working).

Adem
  • 103
  • 4
  • Please include in your question the code that makes the HTTP request or provide a minimal example that should work but does not. The question can then be migrated to [so] where Java experts can review it. – Daniel B May 05 '17 at 22:23
  • [This question](https://superuser.com/q/747377/219095) looks relevant, too. – Daniel B May 05 '17 at 22:25
  • Could you expand the "Cipher suites" section? – u1686_grawity May 06 '17 at 07:35

0 Answers0