mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Enter Password or Pin for "NSS Certificate DB"

Open negbie opened this issue 7 years ago • 9 comments

Mby it's worth to give users who have a firefox master password a hint that they should enter this when they see "Enter Password or Pin for "NSS Certificate DB""

negbie avatar Aug 06 '18 10:08 negbie

@negbie Do you have an example of what this looks like to a user? Do they get a password prompt from certutil?

adamdecaf avatar Oct 02 '18 15:10 adamdecaf

On mac, it looks like this:

Using the local CA at "/Users/kelvin/Library/Application Support/mkcert" ✨
Enter Password or Pin for "NSS Certificate DB":

kelvinj avatar Dec 08 '18 08:12 kelvinj

@adamdecaf Yes you get a password prompt, but I agree with @negbie, it is unclear what password is asked (until you google it and find this issue that is :p).

A better phrasing would be "Enter your Firefox master password:". :)

NicolasCARPi avatar Jan 07 '19 11:01 NicolasCARPi

I agree it's unclear, but the prompt comes from NSS's certutil not mkcert. I'm not sure if that prompt can be changed.

adamdecaf avatar Jan 07 '19 17:01 adamdecaf

@adamdecaf Then maybe mkcert can write a message just before: "You will be asked for your Firefox's master password now".

NicolasCARPi avatar Jan 07 '19 17:01 NicolasCARPi

Good call - Does this PR look ok? https://github.com/FiloSottile/mkcert/pull/100

adamdecaf avatar Jan 07 '19 17:01 adamdecaf

@adamdecaf LGTM :+1:

NicolasCARPi avatar Jan 07 '19 18:01 NicolasCARPi

"The part in quotes is the name of the PK11 token. Otherwise, certutil doesn't know what's calling it."

https://searchfox.org/mozilla-central/source/security/nss/cmd/lib/secutil.c#234

We might be relying on the name that firefox/chrome sets instead of an option we can change.

adamdecaf avatar Jan 07 '19 23:01 adamdecaf

Sorry for this necropost. Just want to mention that, in my case, the default password was an empty string and

certutil -N -d ~/.pki/nssdb

allowed me to create a new password. Your actual directory might be different from mine.

cpicanco avatar Feb 13 '22 00:02 cpicanco