Add binary OpenSSH KRL export

This commit is contained in:
Eric Wendland 2026-05-18 11:51:12 +02:00
commit b9e7c61e67
11 changed files with 209 additions and 20 deletions

View file

@ -397,6 +397,8 @@ pub enum SshRevocationCommand {
out: PathBuf,
#[arg(long, default_value = "jsonl")]
format: String,
#[arg(long)]
ca_public: Option<PathBuf>,
},
}
@ -660,9 +662,15 @@ fn request_for_command(command: Command) -> Result<ControlRequest> {
reason,
},
SshRevocationCommand::List => ControlRequest::SshRevocationList,
SshRevocationCommand::Export { out, format } => {
ControlRequest::SshRevocationExport { out, format }
}
SshRevocationCommand::Export {
out,
format,
ca_public,
} => ControlRequest::SshRevocationExport {
out,
format,
ca_public,
},
},
},
Command::Init | Command::Daemon { .. } => bail!("command is handled directly"),