Bitnami Secure Image for EJBCA
EJBCA is an enterprise class PKI Certificate Authority software, built using Java (JEE) technology.
Overview of EJBCA Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR
docker run --name ejbca bitnami/ejbca:latest
Warning: This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the Configuration section for a more secure deployment.
Why use Bitnami Secure Images?
Those are hardened, minimal CVE images built and maintained by Bitnami. Bitnami Secure Images are based on the cloud-optimized, security-hardened enterprise OS Photon Linux. Why choose BSI images?
- Hardened secure images of popular open source software with Near-Zero Vulnerabilities
- Vulnerability Triage & Prioritization with VEX Statements, KEV and EPSS Scores
- Compliance focus with FIPS, STIG, and air-gap options, including secure bill of materials (SBOM)
- Software supply chain provenance attestation through in-toto
- First class support for the internet’s favorite Helm charts
Each image comes with valuable security metadata. You can view the metadata in our public catalog here. Note: Some data is only available with commercial subscriptions to BSI.
If you are looking for our previous generation of images based on Debian Linux, please see the Bitnami Legacy registry.
Why use a non-root container?
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.
Supported tags and respective Dockerfile links
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.
Get this image
The recommended way to get the Bitnami EJBCA Docker Image is to pull the prebuilt image from the Docker Hub Registry.
docker pull bitnami/ejbca:latest
To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.
docker pull bitnami/ejbca:[TAG]
If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.
git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .
How to use this image
EJBCA requires access to a MySQL or MariaDB database to store information. We'll use the Bitnami MariaDB image for the database requirements.
Run the application using Docker Compose
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated Bitnami Helm chart.
Persisting your application
If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.
For persistence you should mount a directory at the /bitnami/wildfly path. If the mounted directory is empty, it will be initialized on the first run.
Configuration
The following section describes the supported environment variables
Environment variables
The following tables list the main variables you can set.
Customizable environment variables
| Name | Description | Default Value |
|---|---|---|
EJBCA_WILDFLY_ADMIN_USER |
Wildfly admin user | admin |
EJBCA_WILDFLY_ADMIN_PASSWORD |
Wildfly admin password | nil |
EJBCA_SERVER_CERT_FILE |
Server cert file | nil |
EJBCA_SERVER_CERT_PASSWORD |
Server cert file password. | nil |
EJBCA_HTTP_PORT_NUMBER |
Wildfly http port number | 8080 |
EJBCA_HTTPS_PORT_NUMBER |
Wildfly https port number | 8443 |
EJBCA_HTTPS_ADVERTISED_PORT_NUMBER |
Rendered port for administrator login URL | $EJBCA_HTTPS_PORT_NUMBER |
EJBCA_ADMIN_USERNAME |
EJBCA administrator username | superadmin |
EJBCA_ADMIN_PASSWORD |
EJBCA administrator password. | Bitnami1234 |
EJBCA_DATABASE_FLAVOR |
EJBCA database flavor | mariadb |
EJBCA_DATABASE_HOST |
Database hostname | nil |
EJBCA_DATABASE_PORT |
Database port number. | 3306 |
EJBCA_DATABASE_NAME |
EJBCA database name. | nil |
EJBCA_DATABASE_USERNAME |
EJBCA database username. | nil |
EJBCA_DATABASE_PASSWORD |
EJBCA database password. | nil |
EJBCA_CA_NAME |
CA name. | ManagementCA |
JAVA_OPTS |
JVM options | -Xms2048m -Xmx2048m -Djava.net.preferIPv4Stack=true -Dhibernate.dialect=org.hibernate.dialect.MySQLDialect -Dhibernate.dialect.storage_engine=innodb |
EJBCA_SMTP_HOST |
SMTP hostname | localhost |
EJBCA_SMTP_PORT |
SMTP port | 25 |
EJBCA_SMTP_FROM_ADDRESS |
SMTP from address | user@example.com |
EJBCA_SMTP_TLS |
SMTP enable TLS | false |
EJBCA_SMTP_USERNAME |
SMTP username | nil |
EJBCA_SMTP_PASSWORD |
SMTP password | nil |
Read-only environment variables
| Name | Description | Value |
|---|---|---|
BITNAMI_VOLUME_DIR |
Directory where to mount volumes. | /bitnami |
EJBCA_BASE_DIR |
EJBCA installation directory. | ${BITNAMI_ROOT_DIR}/ejbca |
EJBCA_BIN_DIR |
EJBCA directory for binary executables. | ${EJBCA_BASE_DIR}/bin |
EJBCA_CONF_DIR |
EJBCA directory for configuration files. | ${EJBCA_BASE_DIR}/conf |
EJBCA_DEFAULT_CONF_DIR |
EJBCA directory for default configuration files. | ${EJBCA_BASE_DIR}/conf.default |
EJBCA_TMP_DIR |
EJBCA directory for temp files. | ${EJBCA_BASE_DIR}/tmp |
EJBCA_INITSCRIPTS_DIR |
EJBCA directory for init scripts. | /docker-entrypoint-initdb.d |
EJBCA_DATABASE_SCRIPTS_DIR |
EJBCA directory for database scripts. | ${EJBCA_BASE_DIR}/sql-scripts |
EJBCA_VOLUME_DIR |
EJBCA persistence directory. | ${BITNAMI_VOLUME_DIR}/ejbca |
EJBCA_WILDFLY_VOLUME_DIR |
EJBCA Wildfly persistence directory. | ${BITNAMI_VOLUME_DIR}/wildfly |
EJBCA_DATA_DIR |
EJBCA data directory. | ${EJBCA_VOLUME_DIR}/tls |
EJBCA_DB_SCRIPT_INDEXES |
EJBCA database tables creation script. | ${EJBCA_DATABASE_SCRIPTS_DIR}/create-index-ejbca.sql |
EJBCA_DB_SCRIPT_TABLES |
EJBCA database indexes creation script. | ${EJBCA_DATABASE_SCRIPTS_DIR}/create-tables-ejbca-mysql.sql |
EJBCA_EAR_FILE |
EJBCA application deployment file. | ${EJBCA_BASE_DIR}/dist/ejbca.ear |
EJBCA_WILDFLY_BASE_DIR |
Wildfly base directory. | ${BITNAMI_ROOT_DIR}/wildfly |
EJBCA_WILDFLY_STANDALONE_DIR |
Wildfly standalone directory. | ${EJBCA_WILDFLY_BASE_DIR}/standalone |
EJBCA_WILDFLY_DEFAULT_STANDALONE_DIR |
Wildfly default standalone directory. | ${EJBCA_WILDFLY_BASE_DIR}/standalone.default |
EJBCA_WILDFLY_DOMAIN_DIR |
Wildfly domain directory. | ${EJBCA_WILDFLY_BASE_DIR}/domain |
EJBCA_WILDFLY_DEFAULT_DOMAIN_DIR |
Wildfly default domain directory. | ${EJBCA_WILDFLY_BASE_DIR}/domain.default |
EJBCA_WILDFLY_TMP_DIR |
Wildfly temporal directory | ${EJBCA_WILDFLY_BASE_DIR}/tmp |
EJBCA_WILDFLY_BIN_DIR |
Wildfly bin directory | ${EJBCA_WILDFLY_BASE_DIR}/bin |
EJBCA_WILDFLY_CONF_DIR |
Wildfly configuration directory | ${EJBCA_WILDFLY_STANDALONE_DIR}/configuration |
EJBCA_WILDFLY_PID_DIR |
Wildfly directory to hold PID file | ${EJBCA_TMP_DIR} |
EJBCA_WILDFLY_PID_FILE |
Wildfly PID file | ${EJBCA_WILDFLY_PID_DIR}/wildfly.pid |
EJBCA_WILDFLY_DEPLOY_DIR |
Wildfly deployment directory. | ${EJBCA_WILDFLY_STANDALONE_DIR}/deployments |
EJBCA_WILDFLY_TRUSTSTORE_FILE |
Wildfly truststore file | ${EJBCA_WILDFLY_CONF_DIR}/truststore.jks |
EJBCA_WILDFLY_KEYSTORE_FILE |
Wildfly keystore file | ${EJBCA_WILDFLY_CONF_DIR}/keystore.jks |
EJBCA_WILDFLY_STANDALONE_CONF_FILE |
Wildfly standalone configuration file | ${EJBCA_WILDFLY_BIN_DIR}/standalone.conf |
EJBCA_WILDFLY_STANDALONE_XML_FILE |
Wildfly standalone configuration file | ${EJBCA_WILDFLY_CONF_DIR}/standalone.xml |
EJBCA_DAEMON_USER |
Wildfly system user. | wildfly |
EJBCA_DAEMON_GROUP |
Wildfly system group | wildfly |
EJBCA_WILDFLY_KEYSTORE_PASSWORD_FILE |
File to store the keystore password | ${EJBCA_WILDFLY_TMP_DIR}/keystore.pwd |
EJBCA_WILDFLY_TRUSTSTORE_PASSWORD_FILE |
File to store the truststore password | ${EJBCA_WILDFLY_TMP_DIR}/truststore.pwd |
EJBCA_WILDFLY_ADMIN_PASSWORD_FILE |
File to store the wildfly admin password | ${EJBCA_WILDFLY_TMP_DIR}/wildfly_admin.pwd |
EJBCA_TEMP_CERT |
Temporary cert file | ${EJBCA_TMP_DIR}/cacert.der |
EJBCA_HOME |
EJBCA home. | ${EJBCA_BASE_DIR} |
JAVA_HOME |
Java home. | /opt/bitnami/java |
JBOSS_HOME |
Jboss home | ${EJBCA_WILDFLY_BASE_DIR} |
LAUNCH_JBOSS_IN_BACKGROUND |
Run jboss in background | true |
JBOSS_PIDFILE |
Wildfly PID file | ${EJBCA_WILDFLY_PID_FILE} |
EJBCA_WILDFLY_DATA_TO_PERSIST |
EJBCA data to persist. | ${EJBCA_WILDFLY_CONF_DIR},${EJBCA_WILDFLY_ADMIN_PASSWORD_FILE},${EJBCA_WILDFLY_BASE_DIR}/standalone/data,${EJBCA_WILDFLY_KEYSTORE_PASSWORD_FILE},${EJBCA_WILDFLY_TRUSTSTORE_PASSWORD_FILE} |
FIPS configuration in Bitnami Secure Images
The Bitnami EJBCA Docker image from the Bitnami Secure Images catalog includes extra features and settings to configure the container with FIPS capabilities. You can configure the next environment variables:
OPENSSL_FIPS: whether OpenSSL runs in FIPS mode or not.yes(default),no.JAVA_TOOL_OPTIONS: controls Java FIPS mode. Use-Djava.security.properties==/opt/bitnami/java/conf/security/java.security.restricted(restricted),-Djava.security.properties==/opt/bitnami/java/conf/security/java.security.relaxed(relaxed), or-Djava.security.properties==/opt/bitnami/java/conf/security/java.security.original(off).
Custom scripts
The Bitnami EJBCA Docker image contains functions to execute any shell scripts after startup. These scripts are executed during the initialization of the EJBCA Wildfly installation.
You can add custom script into the /docker-entrypoint-init.d directory. All files in the directory will be executed using bash.
Logging
The Bitnami EJBCA Docker image sends the container logs to stdout. To view the logs:
docker logs ejbca
You can configure the containers logging driver using the --log-driver option if you wish to consume the container logs differently. In the default configuration docker uses the json-file driver.
Notable Changes
7.4.3-2-debian-10-r68
The persistence has been refactorized and the volume mount point was moved from /bitnami/ejbca to /bitnami/wildfly.
In previous versions only password files were persisted, making the container was unable to restart. The initialization logic has been changed as well as the persisted data directories. The Wildfly configuration and data directories are now persisted, making the container able to automatically restart. The time that the container takes to restart has also been improved. Due to the mentioned changes, the automatic upgrade from previous image versions is not supported and requires a manual migration.
License
Copyright © 2026 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

