Skip to content

Commit

Permalink
Don't double read from u.Pin()
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbelvin committed Jun 15, 2021
1 parent 063a09a commit a63a1d6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cmd/step-pkcs11-init/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ func main() {
fatal(err)
}

kmsPin := u.Pin()
if c.Pin == "" && kmsPin != "" {
c.Pin = kmsPin
}

if c.Pin == "" {
pin, err := ui.PromptPassword("What is the PKCS#11 PIN?")
if err != nil {
fatal(err)
}
c.Pin = string(pin)
}

k, err := kms.New(context.Background(), apiv1.Options{
Type: string(apiv1.PKCS11),
URI: c.KMS,
Expand Down

0 comments on commit a63a1d6

Please sign in to comment.