Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7490

Use relative keystore paths in ejbca-setup.sh scripts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.15.1
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Community
    • Sprint:
      EJBCA Team Bob - 2018 w45

      Description

      I'm trying to follow the quick start guide on a fresh Ubutnu 18.04.1 LTS to install the ejbca community edition - 6.10.1.2

      The systems seems to be installing successful. As it does not create a service for auto startup, I assume (please correct if i'm doing it wrong), after a system reboot I need to start wildfly server. When starting it (using wildfly/bin/standalone.sh ) it can not find keystore files, and because of it, it fails to load ejbca applications. 

      Error:

      ...

      Caused by: java.lang.IllegalStateException: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at wildfly/standalone/configuration/keystore/keystore.jks

      ...

      In configuration file (/wildfly/standalone/configuration/standalone.xml) I see:

      ...

      <security-realm name="SSLRealm">

          <server-identities>

              <ssl>

                  <keystore path="wildfly/standalone/configuration/keystore/keystore.jks" keystore-password="df31a263ebd1a159f8c0070e03a34a6ff74c4878" alias="localhost"/>

              </ssl>

          </server-identities>

          <authentication>

              <truststore path="wildfly/standalone/configuration/keystore/truststore.jks" keystore-password="4a357297a6e9922bde7036ffa3e45d24ddbd8594"/>

          </authentication>

      </security-realm>

      ...

       

      The path seems to be wrong.

      I was able to fix it by editing the path and relative-to to:

      <keystore relative-to="jboss.server.config.dir" path="keystore/keystore.jks" ...

      and

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

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            eziitiss Eziitiss Nezinu
            Verified by:
            Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Time Spent - 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 30 minutes Remaining Estimate - 30 minutes
                30m