This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Security and the fly likes Unable / How to make Https request using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Unable / How to make Https request using Java " Watch "Unable / How to make Https request using Java " New topic
Author

Unable / How to make Https request using Java

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
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
rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
Hi,

any update on below.

Regards,
Rakesh
srinivas srinivasmeenavalli
Ranch Hand

Joined: Jul 13, 2008
Posts: 65
refer webpage
 
jQuery in Action, 2nd edition
 
subject: Unable / How to make Https request using Java
 
Similar Threads
SOAP and HTTPs Help!!!
Certificate question
Java: entering a secure website with userid and password
https -- connects fine on windows / error on unix
Problem HTTPSURLConnection for Siteminder authentictaion