Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4420805

Unix: -Djavax.net.ssl.trustStore system property ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.0.2
    • security-libs



      Name: krC82822 Date: 03/01/2001


      java version "1.2.2.04"
      HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.04-00/04/14-PA_RISC2.0)


      Under HPUX the -Djavax.net.ssl.trustStore=/path/jssecacerts appears to
      be ignored and later I get this while trying to open a client socket:

      main, SEND SSL v3.1 ALERT: fatal, description = certificate_unknown
      main, WRITE: SSL v3.1 Alert, length = 2
      Exception in thread "main" javax.net.ssl.SSLException: untrusted server cert
      chain

      The problem of couse goes away if I copy the jssecacerts file to
      ${JAVA_HOME}/jre/lib/security. This client has been successfully
      tested under Windows and the -D option works flawlessly in that
      environment.

      Also please note that I have verified that the system property
      is set as per the -D option, and it is. I printed the value of
      System.getProperty("javax.net.ssl.trustStore") and it is set
      to "/path/jssecacerts" as expected. It just seems that for
      some reason the system property is being ignored by JSSE.

      ------------

      01 Mar 2001, eval1127@eng -- may have already been fixed under #4335514
      (fixed in "helms" release -- numeric equivalent is...?)
      (Review ID: 117845)
      ======================================================================

            wetmore Bradford Wetmore
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: