Merge pull request #612 from gdbelvin/kmspin

Allow reading pin from kms string
This commit is contained in:
Mariano Cano 2021-06-15 12:05:34 -07:00 committed by GitHub
commit a0633a6efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ func main() {
fatal(err)
}
if u.Pin() == "" && c.Pin == "" {
if u.Get("pin-value") == "" && u.Get("pin-source") == "" && c.Pin == "" {
pin, err := ui.PromptPassword("What is the PKCS#11 PIN?")
if err != nil {
fatal(err)