This section provides a guide to quickly get a test installation up and running using Ubuntu Linux. For more information on configuration options etc, see Installation Instructions.
The current installation procedures for JBoss 7 / EAP 6 uses the JBoss CLI to configure the application server. Note that JBoss CLI has some issues with automated deploys and functions may break. For example, if the machine not has enough cores, the CLI connections will terminate and report errors.
This guide uses EJBCA 6.5, JBoss EAP 6.4, and Java 8, but other versions may be possible to use by replacing the versions. It is assumed that the installation is made in a user account with the username "user". In your environment, replace the username you are using with "user".
This Quick Start guide uses the JBoss built in database H2 that should not be used for a production installation.
The H2 database is created as ~/ejbcadb. If you run this installation multiple times, delete this file to remove old databases.
Install Ubuntu 16.04 server x64, default configuration, only OpenSSH server selected (or other Ubuntu of your choice, for example Ubuntu Desktop).
Add user with username user during install. The path /home/user means the user's home directory below.
Make sure that networking and hostnames work correctly, i.e. hostname and ip are configured in /etc/hosts.
Open a new terminal ejbca.
Install needed software from Ubuntu repositories:
sudo apt-get install
-jdk-headless ant ant-optional unzip
Install software not in Ubuntu repositories, JBoss EAP 6.4 and EJBCA 6.5.0:
Configure EJBCA to allow finding the application server (JBoss):
Open new terminal jboss and start JBoss:
Build and deploy EJBCA to JBoss:
If questions show up, press Enter and wait a little for JBoss to reload.
Run installation (in terminal ejbca) to create initial Management CA and TLS keystores:
and select all default values.
If ant install fails with errors, this is typically due to an unsuccessful deployment or start of JBoss. Check the server logs to resolve the issue, see Troubleshooting.
Go back to the jboss terminal and restart JBoss:
Copy /home/user/ejbca_ce_6_5_0/p12/superadmin.p12 to the Admin Desktop machine and import in web browser (keystore password is ejbca by default).
Open URL https://server:8443/ejbca, where server is the server's name/ip. You will see a warning that the server side TLS certificate is not trusted. Ignore this warning to be prompted to connect using your imported P12.
The installation is now done and it is highly recommended to secure your installation according to the Securing JBoss.