Deployment Reference

The following provides an Ant Target Shortlist and lists files and/or functions copied/touched during various ant targets called.

Ant Target Shortlist

To deploy and install EJBCA the first time (from clean database), use the following commands:

ant deploy
ant install

To upgrade EJBCA, and thus only deploy a new ejbca.ear file, use the following commands:

ant deployear

To (re)configure TLS, that is to configure TLS ports and deploy TLS keystores, use the following commands:

ant web-configure
ant deploy-keystore

To (re)configure database, and thus deploy EjbcaDS data source, use the following command:

ant deploy-datasource

Files Deployed

The following lists files/functions copied/touched during various ant targets called. These targets only modify files automatically on platforms where auto-configure is supported, but gives an indication of configuration steps needed for other platforms as well.

Below shows JBoss (configuration) files updated. For JBoss 7/EAP6 there is only one unified configuration file and all configuration is performed using the JBoss 7 command line interface.

ant deploy

  • ant deploy-datasource

    • standalone/configuration/standalone.xml

  • ant deploy-service

    • standalone/configuration/standalone.xml

  • ant deployear

    • deploy/ejbca.ear

ant install

  • ant runinstall (creates initial Management CA and web keystores)

  • ant web-configure

  • ant deploy-keystore

ant web-configure

  • standalone/configuration/standalone.xml

ant deploy-keystore

  • conf/keystore/tomcat.jks

  • conf/keystore/truststore.jks

ant deploy-datasource

  • standalone/configuration/standalone.xml

  • standalone/configuration/standalone.xml

ant deploy-service

  • standalone/configuration/standalone.xml