EJBCA is an enterprise class PKI Certificate Authority built on J2EE
technology. It is a robust, high performance, platform independent, flexible,
and component based CA to be used stand-alone or integrated in other J2EE
EJBCA is an enterprise class PKI, meaning that you can use EJBCA to build a
complete PKI infrastructure for your organization. If you only want to issue a
few single certificates for testing, there are probably options that will get
you started quicker, but if you want a serious PKI we recommend EJBCA.
How to install EJBCA
Firstly, you have to download those tools:
Here I use JDK1.6.0_06
of course, this version should fit to JDK
Jboss is a default Ejbca application server, so here i use JBoss-5.0.1.GA-
Ant is a java-based build tool, ejbca is devloped in java so you should use it,
here i use apache-ant-1.7.1-bin.zip
Of course, mysql is one of databse chooses, you can use others. Here i use
In EJBCA.org, the latest version is 3.8.2, but it not fit to current tools, so
i use ejbca_3_8_1.zip
The version about i just say must be deal, you'd better not change for you can
follow and get a success!
Second, let's install them.
before install them, you should prepare a directory to contain them, for
example, i set path to E:\Java_dev.
Install it to E:\Java_dev\JDK1.6.0
Copy this zip's jar to E:\Java_dev\JDK1.6.0\jre\lib\security and c:\program
if you download an unintall mysql.zip, ok you just have to unzip it to
E:\Java_dev\mysql-5.1.32-win32, after that, make sure you have create a
database named ejbca successfully.
4.install jboss, ant and ejbca
Unzip them to independent directory, such as E:\Java_dev\jboss-5.0.1.GA,
E:\Java_dev\apache-ant-1.7.1 and E:\Java_dev\ejbca_3_8_1
After you unzip jboss, you have to copy mysql5's jar(mysql-connector-java-
5.1.7-bin.jar) to E:\Java_dev\jboss-5.0.1.GA\server\default\lib.
Third step is set environment variables
ANT_OPTS = -Xmx640m
PATH = %JAVA_HOME%\BIN;%JBOSS_HOME%\BIN;%ANT_HOME%\bin;
Fourth, set some setting of EJBCA
1.In effect ejbca properties
Enter directory %EJBCA_HOME%\conf\, change ejbca.properties.sample to
ejbca.properties, web.properties.sample to web.properties and
database.properties.sample to database.properties
2.In effect database type to ejbca
Open file database.properties, set some setting of database to mysql, detail
If your mysql
Five, compile and install ejbca
'CMD' enter command line, enter your ejbca_home, here is
enter 'ant bootstrap'
enter 'ant install'
close jboss window.
enter 'ant deploy'
If failed, please check your 'path' is ok? Or your version are fit each other?
Six, install CA
If those setp is pass, ok, congratulation!
Enter %EJBCA_HOME%\p12 directory, double click the file named 'superadmin.p12',
the password is 'ejbca', enter it then you will be ok.
when you meet the pop-up message-box, choose ok then go on, soon you will see
the EJBCA Management Page. And it's mean you have install EJBCA_3_8_1 success!
Ok, let's do it by yourself, good luck!
If you have any question, please contact me by MSN:firstname.lastname@example.org,
thanks for your reading.