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

What is the "Password:" for which I'm prompted when I run mkcert -install on a Mac? #178

Closed
kenny-evitt opened this issue Jul 19, 2019 · 7 comments

Comments

@kenny-evitt
Copy link

kenny-evitt commented Jul 19, 2019

From a Terminal window:

$ mkcert -install
Created a new local CA at "/Users/kenny/Library/Application Support/mkcert" 💥
Password:

I'm pretty sure this is my Keychain password (the 'login' password for my user) but it's certainly not clear that that's what's being requested. Could this (or should) this be documented in the README? (I'd be willing to make a stab at doing so if it's considered helpful.)

@hauleth
Copy link

hauleth commented Jul 29, 2019

Current account password. The same you use when you do sudo true

@rfay
Copy link

rfay commented Jul 29, 2019

This is a confusing thing that mkcert silently runs sudo. Maybe necessary, but a little more output would be useful, knowing that sudo may go ahead and prompt for password.

@hauleth
Copy link

hauleth commented Jul 29, 2019

Actually, at least in macOS Sierra, it is not needed to use sudo for security command line tool, as this will automatically ask user whether they allow changes and would even allow using TouchID to confirm such changes.

adamdecaf added a commit to adamdecaf/mkcert that referenced this issue Jul 30, 2019
sudo is not required on macOS as the OS will prompt the user to
authorize the Keychain changes.

Issue: FiloSottile#178
@adamdecaf
Copy link
Contributor

adamdecaf commented Jul 30, 2019

I created #183 which removes sudo where we can, but since we add the mkcert root to the System Keychain sudo appears to be required still.

adamdecaf added a commit to adamdecaf/mkcert that referenced this issue Jul 30, 2019
sudo (on macOS with the security cli) is only required when we access
the System Keychain and otherwise the OS will prompt the user
authorize the Keychain changes.

Issue: FiloSottile#178
@FiloSottile
Copy link
Owner

We should probably always pass --prompt="Sudo password:" to sudo.

@kenny-evitt
Copy link
Author

@FiloSottile That's a good idea too but a brief mention in the README would nicely set expectations too:

@adamdecaf
Copy link
Contributor

I like the idea of passing --promtp to sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants