Results 1 to 4 of 4
  1. #1
    jamojo is offline Member
    Join Date
    Jun 2009
    Posts
    2
    Rep Power
    0

    Default Connect to HTTPS + SSL handshake failure

    Hello everyone,

    I am using the code attached. It is working when I used this in Eclipse. What I did is to place the generated keystore from the InstallCert.class (blogs.sun.com/andreas/resource/InstallCert.java) to the latest JRE in the Program Files>Java

    But when I deployed this class in Tomcat/Bea, I received this errors:

    BEA Weblogic - HttpsConnection Exception: [Security:090477]Certificate chain received from <site> - <ip> was not trusted causing SSL handshake failure.

    TOMCAT: HttpsConnection Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target.

    Can you give me an idea on how to resolve this issue? Your replies are greatly appreciated.

    Looking forward to your replies.

    Thanks in Advance
    Attached Files Attached Files

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    You need to make sure all certificates are installed properly with Tomcat and registered as trusted. If it's not a self-certified key then you need the certificates from the certification chain as well.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    jamojo is offline Member
    Join Date
    Jun 2009
    Posts
    2
    Rep Power
    0

    Default

    Thanks for your reply.

    Can you give me some idea on how to install the certificate properly with Tomcat and registered as trusted?

    If it's not a self-certified key then you need the certificates from the certification chain as well.
    How can I determine if this is self-certified key?

    I am quite new of this. I hope you can help or give me some advice about this.

    Thanks in Advance

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    It's self-certified if you created a self-certified key. I'm afraid I don't know much about Tomcat though.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. Animation failure...
    By lordbob75 in forum New To Java
    Replies: 10
    Last Post: 05-11-2009, 03:06 AM
  2. HTTPS using certificate
    By MCJP in forum Advanced Java
    Replies: 1
    Last Post: 09-25-2008, 02:48 PM
  3. Replies: 1
    Last Post: 03-14-2008, 03:51 PM
  4. JDK 1.3 with HTTPS
    By sriram in forum Advanced Java
    Replies: 2
    Last Post: 01-21-2008, 11:51 PM
  5. HTTPS and JBoss
    By Heather in forum Advanced Java
    Replies: 2
    Last Post: 06-30-2007, 05:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •