bifroest key import ca
Validates and merges plain OpenSSH certificate-authority public keys into a local trust file. Certificates, private keys, and authorized-key options are rejected. A fingerprint mismatch leaves the destination unchanged.
Syntax
Arguments
None.
Flags
Includes all general flags.
--trustedCAsFile
Public-key file containing the trusted SSH certificate authorities to update.
--input
File Path = "-"
File containing the public CA keys. - reads from stdin. Input is limited to 4 MiB.
--expectedFingerprint
string
Expected OpenSSH SHA256 fingerprint of every imported CA, or unknown. Omission implies unknown.
Output
A CA trust file containing the successfully imported public keys. Input validation or fingerprint failure leaves the destination unchanged; no private key is imported.
Examples
Import a separately provisioned CA
- Obtain the CA public key and its SHA256 fingerprint through a trusted channel, as in the delegation example.
-
Import it, replacing
CA_FINGERPRINTwith that value:1 2 3 4
bifroest key import ca \ --trustedCAsFile /etc/engity/bifroest/trusted-cas.pub \ --input /srv/ssh-trust/bifroest-ca.pub \ --expectedFingerprint CA_FINGERPRINTThe service user needs write access to the destination's parent directory.
Availability
linux |
darwin |
windows |
|---|---|---|
| / | / | / |
Invocation modes
| Local CLI | @target |
Direct SSH |
|---|---|---|