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

Recognize custom Firefox profile locations #521

Open
philnagel opened this issue Apr 27, 2023 · 3 comments
Open

Recognize custom Firefox profile locations #521

philnagel opened this issue Apr 27, 2023 · 3 comments

Comments

@philnagel
Copy link

Environment

  • Operating system (including version): macOS Ventura 13.3.1
  • mkcert version (from mkcert -version): v1.4.4
  • Server (where the certificate is loaded): n/a
  • Client (e.g. browser, CLI tool, or script): n/a

What you did

Ran mkcert -install

What went wrong

The above command was partially successful but returned an error regarding Firefox:

The local CA is already installed in the system trust store! 👍
ERROR: no Firefox security databases found

I believe this is due to how this script (line 19) assumes Firefox profiles are always located at ~/Library/Application Support/Firefox/Profiles. However, Firefox supports custom profile locations. On my machine, the profiles are located elsewhere. Instead of assuming the above path, the script should check the file ~/Library/Application Support/Firefox/Profiles/profiles.ini, which has the following pertinent sections:

[Profile1]
Name=Work
IsRelative=0
Path=/Users/philna/firefox_profiles/phil_work

[Profile0]
Name=Personal
IsRelative=0
Path=/Users/philna/firefox_profiles/personal

I would normally submit a pull request, but I have never used go before so I am not sure it would be very elegant. I can attempt if desired.

@g0t4
Copy link

g0t4 commented Jan 19, 2024

+1 in linux environments, firefox-esr uses ~/.mozilla/firefox-esr/ and currently mkcert checks ~/.mozilla/firefox/

@g0t4
Copy link

g0t4 commented Jan 29, 2024

FYI #566

@c33s
Copy link

c33s commented Feb 1, 2024

in general it would be good to allow the developers to override data. being able to manually provide things like profile dir and name of the CA would really help.

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

3 participants