forked from TrueCloudLab/certificates
Add back UI check, but don't read file
This commit is contained in:
parent
a63a1d6482
commit
c6bb7aa199
1 changed files with 8 additions and 0 deletions
|
@ -119,6 +119,14 @@ func main() {
|
||||||
fatal(err)
|
fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.Pin == "" && u.Get("pin-value") == "" && u.Get("pin-source") == "" {
|
||||||
|
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