bxp-cli trust¶
Trust a BastionXP CA: the first step on every machine.
Usage¶
Fetch the CA's root certificate, check it against its fingerprint, and
save it together with the server's address and the authority's ID.
Afterwards the other commands need neither --ca-url nor --authority.
Get the fingerprint from the CA's administrator, by any other way than
the server itself: a message, a wiki page. It is what makes the root
you fetch the right one, so it cannot be left out.
Usage:
bxp-cli trust [flags]
Examples:
bxp-cli trust --ca-url https://bastionxp.example.com --authority 3f2a... \
--fingerprint 9d4b7c0e...e1f0
Flags:
--authority string ID of the certificate authority on the server (or BXP_CLI_AUTHORITY)
--ca-url string address of the BastionXP server, e.g. https://bastionxp.example.com (or BXP_CLI_CA_URL)
--fingerprint string SHA-256 fingerprint of the CA's root certificate, from the administrator
--force replace the trust saved for another CA
-h, --help help for trust
Global Flags:
-v, --verbose show each step on stderr (or BXP_CLI_LOG_LEVEL=debug)