Based on : https://forge.fusiondirectory.org/projects/fd-plugins/wiki/How_install_EJBCA_and_JBOSS
Based on http://www.ejbca.org/docs/installation.html#Ubuntu%20quick%20start
Tip : Install tmux or screen to use two terminals or more
Tip : Install tmux or screen to use two terminals or more
- Create new user
- useradd -m ejbca
- passwd ejbca
- Install softwares
- apt-get install openjdk-7-jdk ant ant-optional unzip ntp
- Download and install jboss and ejbca
- su -l ejbca
- wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
- wget http://sourceforge.net/projects/ejbca/files/ejbca6/ejbca_6_2_0/ejbca_ce_6_2_0.zip
- unzip jboss-as-7.1.1.Final.zip
- unzip ejbca_ce_6_2_0.zip
- Configure ejbca (where is jboss and other if you need)
- echo "appserver.home=/home/ejbca/jboss-as-7.1.1.Final" >> ejbca_ce_6_2_0/conf/ejbca.properties
- Launch jboss
- export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-<arch>/jre
- jboss-as-7.1.1.Final/bin/standalone.sh
- EJBCA install (answer to question)
- cd ejbca_ce_6_2_0/
- export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-<arch>/jre
- ant deploy
- (wait little that jboss reload)
- ant install
- Restart jboss
- ctrl + c
- jboss-as-7.1.1.Final/bin/standalone.sh
- Import superadmin.p12 in your browser (/home/ejbca/ejbca_ce_6_2_0/p12/superadmin.p12)
- Go to https://<IP>:8443/ejbca
- Configure jboss for logging
- Run ./bin/jboss-cli.sh
- connect
- /system-property=org.jboss.as.logging.per-deployment:add(value=false)
- /subsystem=logging/logger=org.ejbca:add
- /subsystem=logging/logger=org.ejbca:write-attribute(name=level, value=DEBUG)
- /subsystem=logging/logger=org.cesecore:add
- /subsystem=logging/logger=org.cesecore:write-attribute(name=level, value=DEBUG)
- exit