feat: fix YubiKey typo
This commit is contained in:
@@ -13,7 +13,7 @@ impl Command for CommandImpl {
|
|||||||
|
|
||||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||||
SubCommand::with_name(self.name())
|
SubCommand::with_name(self.name())
|
||||||
.about("Yubikey HMAC decrypt")
|
.about("YubiKey HMAC decrypt")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("ciphertext")
|
Arg::with_name("ciphertext")
|
||||||
.long("ciphertext")
|
.long("ciphertext")
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ impl Command for CommandImpl {
|
|||||||
|
|
||||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||||
SubCommand::with_name(self.name())
|
SubCommand::with_name(self.name())
|
||||||
.about("Yubikey HMAC encrypt")
|
.about("YubiKey HMAC encrypt")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("plaintext")
|
Arg::with_name("plaintext")
|
||||||
.long("plaintext")
|
.long("plaintext")
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ impl Command for CommandImpl {
|
|||||||
ssh_public_key.write_string(format!("nistp{}", ec_bit_len).as_bytes());
|
ssh_public_key.write_string(format!("nistp{}", ec_bit_len).as_bytes());
|
||||||
ssh_public_key.write_string(pk_point_hex);
|
ssh_public_key.write_string(pk_point_hex);
|
||||||
let ssh_public_key_str = format!(
|
let ssh_public_key_str = format!(
|
||||||
"ecdsa-sha2-nistp{} {} Yubikey-PIV-{}", ec_bit_len, base64_encode(ssh_public_key), slot_id);
|
"ecdsa-sha2-nistp{} {} YubiKey-PIV-{}", ec_bit_len, base64_encode(ssh_public_key), slot_id);
|
||||||
json.insert("ssh_public_key", ssh_public_key_str.to_string());
|
json.insert("ssh_public_key", ssh_public_key_str.to_string());
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ impl Command for CommandImpl {
|
|||||||
eprintln!();
|
eprintln!();
|
||||||
|
|
||||||
let ssh_pub_key = format!(
|
let ssh_pub_key = format!(
|
||||||
"{}ecdsa-sha2-{} {} Yubikey-PIV-{}",
|
"{}ecdsa-sha2-{} {} YubiKey-PIV-{}",
|
||||||
if ca {
|
if ca {
|
||||||
"cert-authority,principals=\"root\" "
|
"cert-authority,principals=\"root\" "
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user