mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

nss: write a notice about being asked for db password

Open adamdecaf opened this issue 6 years ago • 13 comments
trafficstars

Issue: https://github.com/FiloSottile/mkcert/issues/50

adamdecaf avatar Jan 07 '19 17:01 adamdecaf

But most users don't have a master password, so it would be confusing wouldn't it?

Can we instead print something like (hint, this is your Firefox master password) if certutil is taking more than 1s?

FiloSottile avatar Jan 08 '19 17:01 FiloSottile

Good point. I'll try and do that.

adamdecaf avatar Jan 09 '19 21:01 adamdecaf

This works locally for me, I tried with and without a firefox master password.

$ go run . -install 
Using the local CA at "/Users/adam/Library/Application Support/mkcert" ✨
The local CA is now installed in the system trust store! ⚡️
Enter Password or Pin for "NSS Certificate DB":
(hint, this is your Firefox master password))
 
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊
The local CA is now installed in Java's trust store! ☕️
$ go run . -install 
Using the local CA at "/Users/adam/Library/Application Support/mkcert" ✨
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊
The local CA is now installed in Java's trust store! ☕️

adamdecaf avatar Feb 07 '19 00:02 adamdecaf

Is this going to be merged anytime? I've been also hit by this.

lopezator avatar Apr 14 '20 15:04 lopezator

Hello, same here, is it planned to be merged someday ? It would really be helpful to have that hint because right now, the password asked is confusing

algorun77 avatar Apr 19 '21 07:04 algorun77

2022 and we still have this issue ongoing.

What about "Enter your Firefox primary password (or leave blank if no password is set)"?

jesusdf avatar Mar 23 '22 08:03 jesusdf

Agreed. This really should be clearer.

nathansmithbz avatar Mar 23 '23 16:03 nathansmithbz

cc @FiloSottile

adamdecaf avatar Mar 23 '23 16:03 adamdecaf

Thanks for a great tool. I just ran into the cryptic Enter Password or Pin for "NSS Certificate DB": message, while installing mkcert https://github.com/ddev/ddev/pull/4914.

It would save Firefox users with Master/Primary password enabled much time if this got committed :)

gitressa avatar May 16 '23 18:05 gitressa

I've updated the PR, so can you try it out? cc @gitressa cc @FiloSottile

adamdecaf avatar May 17 '23 17:05 adamdecaf

Thanks for a fast reply and update @adamdecaf! It works well, and the help text is shown:

$ mkcert -install
Created a new local CA 💥
The local CA is now installed in the system trust store! ⚡️
Enter Password or Pin for "NSS Certificate DB":
(hint, this is your Firefox primary password))

The local CA is now installed in the Firefox and/or Chrome/Chromium trust store (requires browser restart)! 🦊

2-firefox-tip-rsult

Note the double "))" at the end. Also, the cursor is shown under the Firefox help sentence, at the red arrow ...

1-firefox-tip

it's not a big deal. I guess it probably isn't possible to keep it after [...] "NSS Certificate DB":?

gitressa avatar May 17 '23 18:05 gitressa

Glad to see it working! I fixed the double )). I don't think we can keep the cursor on the previous line - terminals don't work like that.

adamdecaf avatar May 17 '23 18:05 adamdecaf

Yeah, that's what I thought. But that's a detail, getting the Firefox primary password message in mkcert is what really counts. Have a great day!

gitressa avatar May 17 '23 18:05 gitressa