• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

SSLHandshakeException: Remote host closed connection during handshake

 
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am facing this problem in my very simple https java client, which tries to open a connection with an https host.

I have found many people facing the same problem but could not manage to get a concrete solution.

Here is my very simple https java client.



Error response:



Strange thing is when I try to open the same url on my browser, I get the response xml perfectly fine, but when I try to invoke the url through my client program, it given me this exception.

Another thing, i have noted that is when I put the url "https://XXX.net:443/dev01/services/epex/orders/TSO?TSO=XXX&startDate=04-NOV-2014&endDate=05-NOV-2014&startTime=00:00&endTime=24:00", in my browser, it automatically removes the 443 port before it shows the response. On my removing the 443 port in my client program, it does not make any difference. I still get the same error message.

I also tried to use the keystore.jks, which i generated after downloading the .cer from my browser, but I still get the same error.



I am sort of very confused as to how I can connect to this server and get the response back?
Thanks.
 
What are you doing? You are supposed to be reading this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic