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
system-config-firewall-tui

 

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

su user
cd
#wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz (does not work with jboss 7)
wget http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.zip
wget http://downloads.sourceforge.net/project/ejbca/ejbca4/ejbca_4_0_12/ejbca_4_0_12.zip
#tar -xf jboss-as-7.1.1.Final.tar.gz
unzip jboss-as-distribution-6.1.0.Final.zip
unzip ejbca_4_0_12.zip
cp ejbca_4_0_12/conf/ejbca.properties.sample ejbca_4_0_12/conf/ejbca.properties
echo "appserver.home=/home/user/jboss-6.1.0.Final" >> ejbca_4_0_12/conf/ejbca.properties
#echo "appserver.type=jboss" >> ejbca_4_0_12/conf/ejbca.properties
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/run.sh)
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.