Run the server¶
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
addressishost:port.":8443"listens on every interface.namesgo into the server's own TLS certificate. Every name clients use to reach the server must be listed, or their TLS check fails. Default:localhostand127.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:
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:
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:
- reads and checks the configuration, and refuses to start on any error;
- opens the CA keys, asking for their passphrase if they are encrypted (see Protect the CA keys);
- opens the database, and brings its schema up to date if this version is newer (see Upgrade);
- issues its own TLS certificate;
- with SCEP on, creates its SCEP key and certificate on first start;
- starts listening, and logs
server startedwith 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¶
Use it for load balancers and container health checks. For a complete
check of the setup, use bxp doctor.
Running it permanently¶
- Run with systemd (recommended on Linux)
- Run in a container