Skip to content

bxp new-ssh-ca

Replace an SSH CA key, in two steps.

Usage

Replace the key of the SSH user CA or the SSH host CA. SSH servers and
clients trust these keys themselves, so a new key must be trusted
everywhere before it signs anything:

  1. bxp new-ssh-ca user
     makes the next key. The CA still signs with the current one, and
     /ssh_user_ca.pub lists both. Add the new key everywhere:
     TrustedUserCAKeys on SSH servers (user CA), @cert-authority in
     known_hosts (host CA).

  2. bxp new-ssh-ca user --activate
     makes it the current key, and removes the old private key. Restart
     "bxp serve". New certificates are signed with the new key.

Keep trusting the old key until the certificates it signed have
expired or, for hosts, have been renewed: host certificates signed with
the old key can still be renewed, and come back signed with the new one.

Run it on the CA machine. It needs the passphrase of the server's keys,
if they are encrypted, but not the root key.

Usage:
  bxp new-ssh-ca user|host [flags]

Flags:
      --activate   step 2: make the next key the current one
  -h, --help       help for new-ssh-ca

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