Affects Version/s: None
Fix Version/s: EJBCA 6.15.1
Issue discovered during:Community
Sprint:EJBCA Team Bob - 2018 w45
I'm trying to follow the quick start guide on a fresh Ubutnu 18.04.1 LTS to install the ejbca community edition - 188.8.131.52
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.
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:
<keystore path="wildfly/standalone/configuration/keystore/keystore.jks" keystore-password="df31a263ebd1a159f8c0070e03a34a6ff74c4878" alias="localhost"/>
<truststore path="wildfly/standalone/configuration/keystore/truststore.jks" keystore-password="4a357297a6e9922bde7036ffa3e45d24ddbd8594"/>
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" ...
<truststore relative-to="jboss.server.config.dir" path="keystore/truststore.jks" ...