Skip to content

bxp trust

Trust a BastionXP CA server: the first step on every client.

Usage

Fetch the CA's root certificate, check it against its fingerprint, and
save it together with the CA's address. Afterwards the other commands
need neither --ca-url nor --root.

Get the fingerprint from the CA's administrator, by any other way than
the CA server itself: a message, a wiki page. "bxp init" printed it,
and the server's log has it. It is what makes the root you fetch the
right one, so it cannot be left out.

With --ssh, ssh is also told to trust host certificates from this CA.

Usage:
  bxp trust [flags]

Examples:
  bxp trust --ca-url https://ca.example.com:8443 \
      --fingerprint 9d4b7c0e...e1f0

  bxp trust --ca-url https://ca.example.com:8443 --fingerprint 9d4b... --ssh

Flags:
      --ca-url string        address of the CA server, e.g. https://ca.example.com:8443 (or BXP_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
      --known-hosts string   the known_hosts file for --ssh (default: ~/.ssh/known_hosts)
      --ssh                  also add the CA's SSH host key to known_hosts, so ssh trusts hosts with its certificates

Global Flags:
      --config string   path to the configuration file (default "bastionxp-ca.yaml")