Skip to content

Run the server

bxp serve --config bastionxp-ca.yaml

The server listens on https://:8443 by default. It issues its own TLS certificate from the CA at every start, so clients only need root.crt to trust it. Stop it with Ctrl+C or SIGTERM.

Where it listens, and its names

server:
  address: ":8443"              # where the HTTPS server listens
  names:                        # DNS names and IP addresses clients use
    - ca.example.com
    - 10.0.0.5
  • address is host:port. ":8443" listens on every interface.
  • names go into the server's own TLS certificate. Every name clients use to reach the server must be listed, or their TLS check fails. Default: localhost and 127.0.0.1.
  • With name constraints, every name must fit them.

Port 443

Nothing stops BastionXP CA from listening on 443 (address: ":443"), but ports below 1024 need a privilege on Linux. With systemd, give the service the CAP_NET_BIND_SERVICE capability (the unit has the lines, commented out), rather than running it as root. See Run with systemd.

The address browsers use

Logins with an identity provider (OIDC) send people's browsers to the server, so the server must know the address they use:

server:
  url: https://ca.example.com:8443

url must be https://host[:port], with no path. It is required for OIDC.

The public address

For revocation information (CRL, OCSP) and the CA's certificates, give the server a second, plain HTTP listener, and say how others reach it:

server:
  public_address: ":8080"
  public_url: http://ca.example.com:8080

Every TLS certificate issued from then on carries the CRL and OCSP addresses under public_url. Only public information is served there; nothing that issues certificates. See Revocation and Public endpoints.

Flags

Flag Environment variable Default Meaning
--config bastionxp-ca.yaml The configuration file.
--log-format BXP_LOG_FORMAT text text, or json for log collectors.
--log-level BXP_LOG_LEVEL info debug, info, warn or error.

At startup

The server:

  1. reads and checks the configuration, and refuses to start on any error;
  2. opens the CA keys, asking for their passphrase if they are encrypted (see Protect the CA keys);
  3. opens the database, and brings its schema up to date if this version is newer (see Upgrade);
  4. issues its own TLS certificate;
  5. with SCEP on, creates its SCEP key and certificate on first start;
  6. starts listening, and logs server started with the root fingerprint:
level=INFO msg="server started" address=:8443 names="[ca.example.com 10.0.0.5]" oidc_login=true ldap_login=false acme=true scep=false root_fingerprint=17f87e8c...

Health check

curl --cacert root.crt https://ca.example.com:8443/health
{"status":"ok"}

Use it for load balancers and container health checks. For a complete check of the setup, use bxp doctor.

Running it permanently