Skip to content

bifroest key export ca

Exports the public SSH certificate authority of the selected flow. Locally, Bifröst loads the selected configuration and creates a missing private CA. With @target or direct SSH, it exports the running flow's existing CA without creating or changing a key. No .pub companion file is created on the server.

Syntax

Arguments

flowName

flowName is the name of an SSH-environment flow with certificate authentication enabled.

Flags

Includes all general flags.

--configuration

Local configuration to load; defaults to the platform path. Not accepted with @target or direct SSH.

--output

File Path = "-"

Output file on the CLI machine. - writes exactly one LF-terminated OpenSSH public-key line to stdout. Direct SSH always writes to stdout and does not accept output or force.

--force

bool = false

Replaces an existing output file.

Output

One OpenSSH CA public-key line, on stdout or in the requested file. Only a local bootstrap invocation can generate a missing effective private CA.

Examples

Export the CA of an SSH-environment flow

  1. Configure the certificate-authenticated openssh flow in the SSH-environment example.
  2. Export the effective public CA:

    1
    bifroest key export ca openssh --output /srv/ssh-trust/bifroest-ca.pub
    

    Use the actual configured flow name and an existing output directory. Continue with the target's CA setup in that example, or the full Bifröst delegation workflow.

Export the running server's CA

  1. Configure the gateway flow and management alias in the public-key export guide.
  2. Export its active CA to a file on the workstation:

    Administrator workstation
    1
    bifroest @bifroest-admin key export ca gateway --output gateway-ca.pub
    

    The management flow must grant keys.read. Direct SSH supports ssh management@bifroest.example.org 'key export ca gateway'.

Availability

linux darwin windows
/ / /

Invocation modes

Local CLI @target Direct SSH