mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Don't double read from u.Pin()
This commit is contained in:
parent
063a09a521
commit
a63a1d6482
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user