Add signkey create

- Add a CLI command for creating a new signing key.
This commit is contained in:
Malte Meiboom
2026-06-19 12:27:43 +02:00
parent e47b1b837c
commit 7688e6c5a2
5 changed files with 113 additions and 4 deletions
+18 -1
View File
@@ -18,7 +18,7 @@ pub struct CliArgs {
#[clap(
long,
global = true,
help = "Certification store (SEQUOIA_HOME).",
help = "Certificate store (SEQUOIA_HOME).",
)]
pub home: Option<String>,
@@ -207,6 +207,7 @@ pub struct SignkeyCommand {
#[derive(Debug, Subcommand)]
pub enum SignkeySubcommand {
Set(SignkeySetCommand),
Create(SignkeyCreateCommand),
#[clap(
about = "Show the fingerprint of the signing key."
)]
@@ -239,3 +240,19 @@ pub struct SignkeySetCommand {
pub cert: Option<String>,
}
#[derive(Parser, Debug)]
#[clap(
about = "Create a new signing key.",
)]
pub struct SignkeyCreateCommand {
#[clap(
long,
help = "Set the userid of the new key.",
value_name = "USERID",
default_value = "Husk signing key",
)]
pub userid: String,
}