Uploaded image for project: 'JOC - JS7 Operations Center'
  1. JOC - JS7 Operations Center
  2. JOC-2135

JOC Cockpit should not throw Exception if only one of Keystore or Truststore is configured

    XMLWordPrintable

Details

    • Fix
    • Status: Approved (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.8.1
    • 2.8.2
    • None
    • None

    Description

      Current Situation

      • JOC Cockpit raises the "ava.lang.IllegalStateException: KeyManagerFactoryImpl is not initialized" if only a Keystore or only a Truststore is configured with the joc.properties file. 
      • Users, who do not make use of a truststore configured with the joc.properties file are affected by this error:
        • Releases prior to 2.8.1 fall back to using the cacerts truststore provided by Java.
        • Release 2.8.1 does not use a default truststore if the setting is not used.

      Desired Behavior

      • JOC Cockpit should not throw an IllegalStateException if only a Keystore is configured in the joc.properties file.
      • JOC Cockpit should fall back to using the cacerts truststore provided by Java.

      Workaround

      • Users who did not use the truststore setting can configure the truststore in the joc.properties file like this:
        • truststore_path = C:\\ProgramFiles\\Java\\jdk21.0.6_7\\lib\\security\\cacerts 
          truststore_type = PKCS12 
          truststore_password = changeit 
          
        • The truststore_path setting must be adjusted to the related location of Java.
        • The truststore_type makes use of the constant value PKCS12.
        • The indicated truststore_password is the default used by every Java version.

      Attachments

        1. error.png
          error.png
          43 kB
        2. joc.log
          3.86 MB
        3. joc.properties
          4 kB

        Issue Links

          Activity

            People

              sp Santiago Aucejo Petzoldt
              sp Santiago Aucejo Petzoldt
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: