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
- Configure the certificate-authenticated
opensshflow in the SSH-environment example. -
Export the effective public CA:
1bifroest key export ca openssh --output /srv/ssh-trust/bifroest-ca.pubUse 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
- Configure the
gatewayflow and management alias in the public-key export guide. -
Export its active CA to a file on the workstation:
Administrator workstation 1bifroest @bifroest-admin key export ca gateway --output gateway-ca.pubThe management flow must grant
keys.read. Direct SSH supportsssh management@bifroest.example.org 'key export ca gateway'.
Availability
linux |
darwin |
windows |
|---|---|---|
| / | / | / |
Invocation modes
| Local CLI | @target |
Direct SSH |
|---|---|---|