Client configuration¶
The client commands need no configuration file. They take their settings
from flags, environment variables and what
bxp trust saved, in this order of precedence:
- a flag (
--ca-url,--root,--token), - the environment variable,
- what
bxp trustsaved for this user.
Connection settings¶
| Flag | Environment variable | Meaning | Commands |
|---|---|---|---|
--ca-url |
BXP_CA_URL |
Address of the CA server, e.g. https://ca.example.com:8443. |
all client commands |
--root |
BXP_ROOT |
Path of the CA's root certificate, root.crt. |
all client commands |
--token |
BXP_TOKEN |
A one-time token. Without one, you log in. | tls, ssh, scep enroll |
The saved root is used only for the saved address: with a different
--ca-url, give --root too.
Login settings¶
Without a token, tls, ssh, scep enroll and remote token log in:
| Flag | Meaning |
|---|---|
| (none) | OIDC: the browser opens the identity provider. |
--ldap |
Log in with your directory (Active Directory) username and password instead of the browser. |
--ldap-user <name> |
The username for --ldap (default: your name on this machine). |
--password-stdin |
With --ldap, read the password from standard input instead of asking. |
The password is never accepted as a flag.
Request settings¶
| Flag | Meaning | Commands |
|---|---|---|
--name |
A name for the certificate (repeat for more). | tls, scep enroll, acme issue, token |
--profile |
The certificate profile. Only used without --token: a token already says which. |
tls, ssh, scep enroll, token |
--validity |
How long the certificate should be valid, e.g. 24h, up to the profile's maximum. |
tls, ssh |
--valid-for |
How long a token can be used (default 10m, at most 24h). |
token |
--out-dir |
Where to write the key and certificate (default .). |
tls, scep enroll, acme issue |
--force |
Replace existing files. | tls, scep enroll, acme issue |
--principal |
Ask for fewer SSH principals than the token allows. | ssh |
--key |
The SSH public key, or the private key to renew. | ssh, renew, acme, scep |
Examples¶
Output conventions¶
- Normal output goes to standard output and stays usable in scripts.
- Login instructions (the browser address) go to standard error.
- Files are written with private keys mode
600; existing files are not replaced without--force(SSH certificates excepted: they are replaced on every request).