Server¶
The server side of BastionXP CA is the CA itself: its keys, its database and the HTTPS server that signs certificates. Everything in this section runs on the CA machine, as the CA's user.
In this section¶
| Topic | Pages |
|---|---|
| Install and run | Initialize the CA · Under an existing root · Run the server · systemd · Container |
| Configuration | Overview · Reference · Annotated example · Reload without restart |
| Certificates and keys | Certificate profiles · Name constraints · Protect the CA keys · Replace the intermediate · Replace an SSH CA key |
| Revocation | Revocation, CRL and OCSP · Public endpoints |
| Operations | doctor · Monitoring · Logging · Backup and restore · Upgrade · Hardening |
The protocol-specific server settings (OIDC, LDAP, ACME, SCEP) are in Authentication & Protocols, each with its own Server setup page.
CA-side commands¶
| Command | Purpose |
|---|---|
bxp init |
Create the CA keys and certificates. |
bxp serve |
Run the CA server. |
bxp token |
Create a one-time token. |
bxp list certificates |
List the certificates the CA issued. |
bxp list acme-accounts |
List the ACME clients that registered. |
bxp list acme-orders |
List the ACME orders, with the proof of each name. |
bxp revoke |
Revoke a certificate. |
bxp access check |
Show which access rules match a person, and what they get. |
bxp profiles |
Show what each certificate profile contains. |
bxp doctor |
Check the setup. |
bxp backup |
Back up the data directory, safely while the server runs. |
bxp fingerprint |
Show the root certificate's fingerprint. |
bxp new-intermediate |
Replace the intermediate. |
bxp new-ssh-ca |
Replace an SSH CA key, in two steps. |
All of them take --config <file> (default bastionxp-ca.yaml).
A production layout¶
| Path | Owner, mode | Contents |
|---|---|---|
/usr/local/bin/bxp |
root, 755 |
The binary. |
/etc/bastionxp-ca/bastionxp-ca.yaml |
root:bastionxp-ca, 640 |
The configuration. |
/etc/bastionxp-ca/*-secret, *-password |
BastionXP CA, 600 |
Secrets the configuration points to (OIDC client secret, LDAP password, SCEP challenge, metrics token). |
/var/lib/bastionxp-ca/ |
BastionXP CA, 700 |
data_dir: keys, certificates, bastionxp-ca.db. |
/etc/credstore.encrypted/bastionxp-ca-key-passphrase |
root | The server keys' passphrase, sealed to the TPM. |
| removable storage | offline | root.key and its backup copy. |