Skip to content

Production checklist

Go through this list before BastionXP CA issues certificates people rely on, and again after a major change. Each item links to the page with the details.

Before bxp init

These are fixed when the CA is created.

  • The CA's lifetimes are chosen: ca.root_validity (default 10 years) and ca.intermediate_validity (default 3 years). See CA lifetimes.
  • Name constraints limit the names the CA can ever issue for, if your names fit a few domains and ranges. See Name constraints.
  • Under a company root? Then create the CA with --external-root. See Under an existing root.
  • The root key goes straight to offline storage with --root-key-out, and the server's keys are encrypted with a TPM-sealed passphrase. See Protect the CA keys.

Keys

  • root.key is offline, with a second copy elsewhere.
  • The root passphrase is in a password manager, not next to the key.
  • The server's keys are encrypted; the passphrase comes from a systemd credential sealed to the TPM, or a secret file outside data_dir. See Where the server looks for its passphrase.
  • data_dir is mode 700, owned by the CA's user.

The machine

  • A dedicated Linux machine or VM, with nothing else on it.
  • The server runs as its own unprivileged user, from the shipped systemd unit or the non-root container image.
  • The configuration is mode 640 (root:bastionxp-ca); secret files 600. See Hardening.

Configuration

  • server.address and server.names match what clients use to reach the CA. See Run the server.
  • Only what you use is turned on: OIDC, LDAP, ACME, SCEP and metrics are off unless configured. See Choosing what to turn on.
  • The certificate profiles' lifetimes suit your renewal; long-lived certificates come from profiles of your own. See Certificate profiles.
  • bxp doctor reports no failures. See Check the setup.

Requesters

  • Logins: a test login works for each kind of person, and bxp access check shows each group gets what it should and no more. See Access rules.
  • ACME: acme.allowed_domains (and allowed_ip_ranges) list only your names; the challenges you do not need are off. See ACME server setup.
  • SCEP: with the shared challenge, dns_domains and max_per_hour are as tight as your devices allow. See Shared challenge.
  • Tokens: created with the shortest --valid-for that works, and handed over on a channel only the requester sees. See Creating tokens.

Network

  • A firewall lets only your networks reach the CA's ports; the CA is not reachable from the internet unless it must be. See Ports.
  • The CA can reach out where it must: the hosts it verifies for ACME, and the identity provider or domain controllers.
  • If a reverse proxy is in front, it limits requests per address, and the ACME limits account for all clients sharing its address. See The network.

Revocation

  • server.public_address and server.public_url are set, so every certificate says where its CRL and OCSP answers are, and the programs that check them can reach that address. See Revocation.
  • You have tried it once: revoke a test certificate and see OCSP answer revoked within a few seconds.

Operations

  • Backups with bxp backup run on a schedule, are copied off the machine, and are kept as private as data_dir. A restore has been tried. See Backup and restore.
  • Monitoring: Prometheus scrapes the metrics, with alerts for the intermediate's expiry and for failed logins; bxp doctor runs from monitoring. See Monitoring.
  • Logs go to your log collector as JSON (--log-format json); the audit messages are kept as long as your policy says. See Logging.
  • Upgrades: you know how versions change and how to go back. See Upgrade.
  • The intermediate's replacement is in the calendar, before the server's warning. See Replace the intermediate.

Clients

  • Every client ran bxp trust with the fingerprint, checked out of band.
  • root.crt is in the system trust store wherever other programs (browsers, curl, language runtimes) must trust the certificates.
  • Renewal runs from an hourly timer. See Run it every hour.
  • SSH servers trust the user CA, and SSH clients the host CA. See SSH user certificates and SSH host certificates.