From 341966c30f9b8d98dab2fcf4969896bfcf80f9f0 Mon Sep 17 00:00:00 2001 From: Gary Belvin Date: Tue, 23 Mar 2021 22:13:35 +0000 Subject: [PATCH] Check pin flag --- cmd/step-pkcs11-init/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/step-pkcs11-init/main.go b/cmd/step-pkcs11-init/main.go index 7768a944..fd9dbc72 100644 --- a/cmd/step-pkcs11-init/main.go +++ b/cmd/step-pkcs11-init/main.go @@ -119,7 +119,7 @@ func main() { fatal(err) } - if u.Pin() == "" { + if u.Pin() == "" && c.Pin == "" { pin, err := ui.PromptPassword("What is the PKCS#11 PIN?") if err != nil { fatal(err)