bxp init¶
Create the CA keys and certificates.
Usage¶
Create a new certificate authority in the configured data directory:
a root certificate, an intermediate certificate and the SSH CA keys.
Run this once. It never overwrites an existing CA.
The root key is always encrypted with a passphrase, which is asked
here. The server never needs the root key: write it straight to
removable storage with --root-key-out, or move it there afterwards.
The keys the server uses are encrypted too if a passphrase for them
is configured (ca.key_passphrase_file, the systemd credential
bastionxp-ca-key-passphrase, BXP_KEY_PASSPHRASE_FILE or BXP_KEY_PASSPHRASE),
or with --encrypt-keys, which asks for one.
Usage:
bxp init [flags]
Examples:
bxp init --config bastionxp-ca.yaml --root-key-out /media/usb/root.key
Flags:
--encrypt-keys encrypt the keys the server uses; asks for a passphrase if none is configured
--external-root under an existing root (e.g. Active Directory Certificate Services): make no root,
but a CSR for the intermediate, for that root's CA to sign
-h, --help help for init
--root-key-out string write the root key here, e.g. on removable storage, instead of into data_dir
--root-passphrase-file string read the root key's passphrase from this file instead of asking (/dev/stdin works)
Global Flags:
--config string path to the configuration file (default "bastionxp-ca.yaml")