Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1597

Do a lenient case insensitive check for JKS keystore provider type in the configured truststore of a security realm

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.2.0.CR3, 3.0.0.Alpha2
    • 2.2.0.CR2, 3.0.0.Alpha1
    • Management
    • None

    Description

      One of the users of WildFly 10.0.0.Final reports that when he configured the truststore as follows:

      <truststore provider="jks" path="server.truststore" relative-to="jboss.server.config.dir" keystore-password="#######"/>
      

      Notice the value for provider - it's lower case jks. Apparently this causes issues and the truststore doesn't work. It works when the value is set to JKS instead.

      Looking at the code in SecurityRealmAddHandler it does a case sensitive check on the value to see if it's a JKS provider and if it is, only then does it use the configured keystore relative path. Otherwise, it just ignores the keystore relative path and leads to hard to debug SSL issues.

      I think it would be better to do a case insensitive check to see if JKS is the configured keystore provider.

      The relevant forum thread discussion is here https://developer.jboss.org/message/958142#958142

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: