Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter Password or Pin for "NSS Certificate DB" #50

Open
negbie opened this issue Aug 6, 2018 · 9 comments
Open

Enter Password or Pin for "NSS Certificate DB" #50

negbie opened this issue Aug 6, 2018 · 9 comments
Labels
enhancement New feature or request

Comments

@negbie
Copy link

negbie commented Aug 6, 2018

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

@FiloSottile FiloSottile added the enhancement New feature or request label Aug 19, 2018
@adamdecaf
Copy link
Contributor

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

@kelvinj
Copy link

kelvinj commented 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":

@NicolasCARPi
Copy link

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

@adamdecaf
Copy link
Contributor

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.

@NicolasCARPi
Copy link

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

@adamdecaf
Copy link
Contributor

Good call - Does this PR look ok? #100

@NicolasCARPi
Copy link

@adamdecaf LGTM 👍

@adamdecaf
Copy link
Contributor

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

@cpicanco
Copy link

cpicanco commented 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.

armenzg added a commit to getsentry/develop that referenced this issue Jul 7, 2022
Some Firefox users may use a master password and the process to create a local certificate will prompt for such password.

Unfortunately, the wording is not clear and this note should help.

This is described in FiloSottile/mkcert#50
a-hariti pushed a commit to getsentry/sentry-docs that referenced this issue Jun 8, 2024
Some Firefox users may use a master password and the process to create a local certificate will prompt for such password.

Unfortunately, the wording is not clear and this note should help.

This is described in FiloSottile/mkcert#50
stephanie-anderson pushed a commit to getsentry/sentry-docs that referenced this issue Jun 10, 2024
Some Firefox users may use a master password and the process to create a local certificate will prompt for such password.

Unfortunately, the wording is not clear and this note should help.

This is described in FiloSottile/mkcert#50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants