Unable to initiate SSL GET or POST with cert

Posted on 2006-06-06
Last Modified: 2010-03-31

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?
Question by:dr0zaxx
    LVL 1

    Author Comment

    I used this in my code together with the website certificate

    System.setProperty("", System.getProperty("user.home") + "/.keystore");

    and if I don't use this, I will get an PKIX path building failed: unable to find valid certification path to requested target error
    LVL 30

    Accepted Solution

    The certificate should be present in the default trust-store or under the trust-store that you are specifying.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Exchange and Third Party application. 8 47
    canBalance challenge 34 58
    powerN  challenge 3 36
    return in catch statement 1 33
    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now