mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Add back UI check, but don't read file
This commit is contained in:
parent
a63a1d6482
commit
c6bb7aa199
@ -119,6 +119,14 @@ func main() {
|
||||
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{
|
||||
Type: string(apiv1.PKCS11),
|
||||
URI: c.KMS,
|
||||
|
Loading…
Reference in New Issue
Block a user