ejbca

by QuenchWorks

Helm chartv0.0.3App 9.6.3LGPL-2.1-or-laterVerified publisher

EJBCA Community Edition: open-source PKI with certificate authorities, registration, CRL and OCSP, on WildFly with the bundled PostgreSQL. Hardened by QuenchWorks: built from source, CVE-gated, cosign-signed and pinned by digest.

About this chart

EJBCA

EJBCA Community Edition, Keyfactor's open-source PKI: certificate authorities, registration, CRLs and OCSP, with SCEP, CMP, web services and REST endpoints. It runs on WildFly with its database in the bundled PostgreSQL. The image is built from source by QuenchWorks, CVE-gated, signed with cosign and pinned by digest.

Install

helm install ejbca oci://ghcr.io/quenchworks/charts/ejbca

The first start creates the database tables and takes a few minutes. The startup probe waits up to 10 minutes.

Administer

Run the EJB CLI inside the pod. It reaches the server over loopback (port 4447), which is not exposed outside the pod.

kubectl exec deploy/ejbca -- ejbca ca init --caname MyCA --dn "CN=MyCA" --tokenType soft --tokenPass null \
  --keytype RSA --keyspec 3072 -v 3650 --policy null -s SHA256WithRSA
kubectl exec deploy/ejbca -- ejbca ca listcas

The admin and RA web UIs require client-certificate TLS, which this chart does not configure yet.

Values

KeyDefaultMeaning
postgresql.enabledtrueBundled PostgreSQL. Set false and fill externalDatabase to use your own.
externalDatabase.host, .port, .database, .username"", 5432, ejbca, ejbcaExternal PostgreSQL.
externalDatabase.existingSecret""Secret holding the password (key externalDatabase.existingSecretPasswordKey).
javaOpts""Extra JVM options for WildFly.
resources1Gi request, 3Gi limitThe JVM needs about 1.5Gi at steady state.
ingress.*offIngress for the public endpoints. Terminate TLS there.
networkPolicy.enabledtrueAllows 8080 in, DNS and PostgreSQL out.

Plain HTTP: put TLS in front with an Ingress before exposing the service.

Deploy ejbca with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ejbca on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartejbca is pinned at v0.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply