From 7660c396a746f4eaf8f38f3016f8385b85af9af1 Mon Sep 17 00:00:00 2001 From: Jarno Elonen Date: Sat, 21 Sep 2024 11:06:15 +0300 Subject: [PATCH] Fix: piv generate --multi is a flag, not string --- hsm_secrets/piv/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsm_secrets/piv/__init__.py b/hsm_secrets/piv/__init__.py index fcfdf88..524f858 100644 --- a/hsm_secrets/piv/__init__.py +++ b/hsm_secrets/piv/__init__.py @@ -213,7 +213,7 @@ def import_to_yubikey_piv_cmd(ctx: HsmSecretsCtx, cert: click.Path, key: click.P @click.argument('user', required=True) @click.option('--slot', '-s', type=click.Choice(['AUTHENTICATION', 'SIGNATURE', 'KEY_MANAGEMENT', 'CARD_AUTH']), default='AUTHENTICATION', help="PIV slot to import to") @click.option('--no-reset', is_flag=True, help="Do not reset PIV app before generating key") -@click.option('--multi', is_flag=False, help="Multi-account mode (no UPN/email SAN)") +@click.option('--multi', is_flag=True, help="Multi-account mode (no UPN/email SAN)") @click.option('--management-key', '-m', help="PIV management key (hex), default: prompt") @click.option('--template', '-t', required=False, help="Template label, default: first template") @click.option('--subject', '-s', required=False, help="Cert subject (DN), default: from config")