• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable / How to make Https request using Java

 
rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a servlet deployed under tomcat.
This servlet when called , after some processing is done makes an Https request to some url.
However I had found that while making Https request I get following exception.



So as a workaround we had used Http request and it worked fine after making some configuration changes for the URL where we should make https request in the http.conf file on the web server.
However this solution is later rejected.

We tried "curl" utility of linux to make the same https request and it worked fine.
This makes me to thing that if some other program works with the same URL and not my java program then my program is wrong. I am missing something. I am new to this kind of a scenario and certificates and all.

I would appreciate your help that would give me a hitch to find out the solution to this one.

The code part :



Regards,
Rakesh
 
rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

any update on below.

Regards,
Rakesh
 
srinivas srinivasmeenavalli
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer webpage
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic