Installing EJBCA Certificate Authority onto CentOS 6.2

First of all, start of with installing the basic CentOS 6.2 version. My set up is 64 bit.

Set up a static IP and a proper host name.
Make sure your host name is in /etc/hosts
yum update -y
yum install -y system-config-firewall-tui ant ant-nodeps wget unzip
install vmware tools if necessary (check the other article for that)
adduser user
passwd user


  • Add port 8080, protocol tcp
  • Add port 8442, protocol tcp
  • Add port 8443, protocol tcp

su user
#wget (does not work with jboss 7)
#tar -xf jboss-as-7.1.1.Final.tar.gz
cp ejbca_4_0_12/conf/ ejbca_4_0_12/conf/
echo "appserver.home=/home/user/jboss-6.1.0.Final" >> ejbca_4_0_12/conf/
#echo "appserver.type=jboss" >> ejbca_4_0_12/conf/
cd ejbca_4_0_12
ant bootstrap
#--> in different terminal, start jboss and go back to original window ( /home/user/jboss-6.1.0.Final/bin/
ant install
ant deploy
#--> in the different terminal stop jboss with CTRL+C and start again
#Copy /home/user/ejbca_4_0_10/p12/superadmin.p12 to admin desktop machine and import in web browser (default password is ejbca).
#Open URL https://server:8443/ejbca
#After installation do not forget to secure your installation as described in securing JBoss.