• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting SSL handshake exception during hitting https request to an external server

paritosh pandey
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I hit the third party URL from my browser I am getting response.

But when I try to do the same thing programatically from my java code I am getting
SSL handshake exception PKIX path building failed.

I am doing development on my windows system but server system is on linux which is connected(VPN connection) to the thirdparty server. SSL certificate is properly installed on the server machine. and I have run the (route -add .. ) command to route the request through the server. Now request hits the third party server and I am getting the response. So I think there is no problem in connectivity.
But I am getting handshake exception while running java code.

Am I missing out something?
Any help would be appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic