CLI reference¶
Every bxp command, with its flags, as the binary prints them with
--help. The same binary is the server and the client.
Global flags¶
| Flag | Description |
|---|---|
--config <file> |
Path to the CA's configuration file (default bastionxp-ca.yaml). Only the CA-side commands read it. |
-h, --help |
Help for any command. |
-v, --version |
The version of the binary. |
Get certificates (on any machine)¶
| Command | Description |
|---|---|
bxp trust |
Trust a BastionXP CA server: the first step on every client |
bxp tls |
Create a key and get a TLS certificate for it |
bxp ssh |
Get an SSH certificate for an existing SSH key |
bxp acme |
Get and manage TLS certificates with ACME: no token, no login |
bxp acme issue |
Get a TLS certificate |
bxp acme renew |
Get a new certificate for the names of one that is due |
bxp acme revoke |
Revoke a certificate |
bxp acme rollover-key |
Replace the ACME account key |
bxp acme deactivate |
Close the ACME account for good |
bxp scep |
Get, renew or fetch a TLS certificate over SCEP |
bxp scep enroll |
Get a TLS certificate over SCEP |
bxp scep renew |
Renew a certificate over SCEP: no token |
bxp scep getcert |
Fetch a certificate the CA issued before |
bxp renew |
Renew a certificate before it expires: no token, no login |
Run the CA (on the CA machine, or as its admin)¶
| Command | Description |
|---|---|
bxp init |
Create the CA keys and certificates |
bxp serve |
Run the CA server |
bxp token |
Create a one-time token for requesting a certificate |
bxp list |
List what the CA keeps: certificates, ACME accounts and orders |
bxp list certificates |
List the certificates the CA has issued |
bxp list acme-accounts |
List the ACME clients that have an account |
bxp list acme-orders |
List the ACME orders, with the proof of each name |
bxp revoke |
Revoke a certificate |
bxp profiles |
Show what each certificate profile contains |
bxp access |
See what the access rules give people who log in |
bxp access check |
Show which access rules match a person, and what they may get |
bxp doctor |
Check the CA's setup and say what is wrong |
bxp backup |
Copy the CA's data directory, safely while the server runs |
bxp fingerprint |
Show the fingerprint of the CA's root certificate |
bxp new-intermediate |
Replace the intermediate certificate, with the offline root key |
bxp new-ssh-ca |
Replace an SSH CA key, in two steps |
Generated from bxp version dev (go1.26.0, darwin/arm64).