[GH-ISSUE #50] Enter Password or Pin for "NSS Certificate DB" #26

Open
opened 2026-02-25 22:32:24 +03:00 by kerem · 9 comments
Owner

Originally created by @negbie on GitHub (Aug 6, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/50

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""

Originally created by @negbie on GitHub (Aug 6, 2018). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/50 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""
Author
Owner

@adamdecaf commented on GitHub (Oct 2, 2018):

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

<!-- gh-comment-id:426329478 --> @adamdecaf commented on GitHub (Oct 2, 2018): @negbie Do you have an example of what this looks like to a user? Do they get a password prompt from `certutil`?
Author
Owner

@kelvinj commented on GitHub (Dec 8, 2018):

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":
<!-- gh-comment-id:445443339 --> @kelvinj commented on GitHub (Dec 8, 2018): 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": ```
Author
Owner

@NicolasCARPi commented on GitHub (Jan 7, 2019):

@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:". :)

<!-- gh-comment-id:451902544 --> @NicolasCARPi commented on GitHub (Jan 7, 2019): @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:". :)
Author
Owner

@adamdecaf commented on GitHub (Jan 7, 2019):

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.

<!-- gh-comment-id:452013317 --> @adamdecaf commented on GitHub (Jan 7, 2019): 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.
Author
Owner

@NicolasCARPi commented on GitHub (Jan 7, 2019):

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

<!-- gh-comment-id:452016056 --> @NicolasCARPi commented on GitHub (Jan 7, 2019): @adamdecaf Then maybe mkcert can write a message just before: "You will be asked for your Firefox's master password now".
Author
Owner

@adamdecaf commented on GitHub (Jan 7, 2019):

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

<!-- gh-comment-id:452020206 --> @adamdecaf commented on GitHub (Jan 7, 2019): Good call - Does this PR look ok? https://github.com/FiloSottile/mkcert/pull/100
Author
Owner

@NicolasCARPi commented on GitHub (Jan 7, 2019):

@adamdecaf LGTM 👍

<!-- gh-comment-id:452028226 --> @NicolasCARPi commented on GitHub (Jan 7, 2019): @adamdecaf LGTM :+1:
Author
Owner

@adamdecaf commented on GitHub (Jan 7, 2019):

"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.

<!-- gh-comment-id:452114596 --> @adamdecaf commented on GitHub (Jan 7, 2019): > "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.
Author
Owner

@cpicanco commented on GitHub (Feb 13, 2022):

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.

<!-- gh-comment-id:1037627144 --> @cpicanco commented on GitHub (Feb 13, 2022): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#26
No description provided.