forked from TrueCloudLab/certificates
Don't double read from u.Pin()
This commit is contained in:
parent
063a09a521
commit
a63a1d6482
1 changed files with 0 additions and 13 deletions
|
@ -119,19 +119,6 @@ func main() {
|
||||||
fatal(err)
|
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{
|
k, err := kms.New(context.Background(), apiv1.Options{
|
||||||
Type: string(apiv1.PKCS11),
|
Type: string(apiv1.PKCS11),
|
||||||
URI: c.KMS,
|
URI: c.KMS,
|
||||||
|
|
Loading…
Reference in a new issue