0 Replies Latest reply on Oct 3, 2012 10:28 AM by daisy

    Enabling SSL: Running on localhost on https

    daisy

      Has anyone setup their localhost to run https?

       

      I've successfully setup the testing and production environments to use https, but setting up localhost is giving me trouble.

      I'm close because I have https://localhost:443 up and running. I'm having problems with the certificate it's using.

       

      We've customized Jive to connect to various other servers (using URLConnection ) and it all works once I import the other server's certificates into the ../java/jdk../jre/lib/security/cacerts.

      The problem is with the customizations that connect to a jive url (ex: https://localhost:443/blah.jspa).

      I'm seeing the error

      "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"

       

      It seems that the certificate the jive URL is using is the tomcat default one from C:\User\<username>\.keystore which is not the one I generated and imported into ../java/jdk../jre/lib/security/cacerts with alias jiveCert .

      Also I'm unable to import the default .keystore cert into cacerts because it's not an x.509 certificate.

       

      Has anyone had success?