Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Unable to initiate SSL GET or POST with cert

Posted on 2006-06-06
4
Medium Priority
?
222 Views
Last Modified: 2010-03-31
Hello,

With a HTTP packet sniffer, I am able to view the GET and POST made by my application to a normal HTTP website. By when doing it for a HTTPS site that requires a certificate to be present, it doesn't work. Both GET and POST doesnt show up, but I am still able to view the response body string as a printout. As for POST to the HTTPS, no matter what, the website doesnt accept it. Any help?
0
Comment
Question by:dr0zaxx
2 Comments
 
LVL 1

Author Comment

by:dr0zaxx
ID: 16844279
I used this in my code together with the website certificate

System.setProperty("javax.net.ssl.trustStore", System.getProperty("user.home") + "/.keystore");

and if I don't use this, I will get an javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target error
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 2000 total points
ID: 16849682
The certificate should be present in the default trust-store or under the trust-store that you are specifying.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question