Request PIN before certificate generation if PIN policy is "always"

We also correctly ask for a PIN touch after the key is generated (which
does not need it) but before certificate generation (which does if the
touch policy is not "none").

Closes str4d/age-plugin-yubikey#101.
This commit is contained in:
Jack Grigg
2023-01-03 02:09:57 +00:00
parent e26ed3a163
commit 45f6580be4
3 changed files with 34 additions and 6 deletions
+6
View File
@@ -144,6 +144,12 @@ mgr-changing-mgmt-key-error =
{" "}{$management_key}
mgr-changing-mgmt-key-success = Success!
## YubiKey keygen
builder-gen-key = 🎲 Generating key...
builder-gen-cert = 🔏 Generating certificate...
builder-touch-yk = 👆 Please touch the {-yubikey}
## Plugin usage
plugin-err-invalid-recipient = Invalid recipient