mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #326] mkcert -install fails to install for Firefox on macOS #211
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#211
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Reconcyl on GitHub (Dec 31, 2020).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/326
I am attempting to test rustls usage in actix-web with this example. It recommended I use mkcert to set up a local CA.
It looks like mkcert was able to install it at the system level, but it gets errors when trying to install it for Firefox:
I have started Firefox before. The error occurs regardless of whether Firefox is started. The server can be started and accessed with
curl -k, however Firefox returnsSEC_ERROR_UNKNOWN_ISSUERand Chrome returnsNET::ERR_CERT_AUTHORITY_INVALID.System information:
brew install --build-from-source)@elhananjair commented on GitHub (Jan 10, 2021):
Hey I just manually imported the .pem file to Firefox Browser and it worked.
@jimscard commented on GitHub (May 13, 2021):
I get an error when it tries to run certutil -- most likely because of the space in the profile path. Since it does an exec.Command of certutil with a constructed command line, the space in the profile path would need to be escaped or something.
└─$ mkcert -install
Sudo password:
The local CA is now installed in the system trust store! ⚡️
ERROR: failed to execute "certutil -A -d sql:/Users/jscardelis/Library/Application Support/Firefox/Profiles/2paahz91.default": exit status 255
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
@nailuj29 commented on GitHub (May 26, 2021):
I am also having this problem on Pop! OS 20.10
@aktiver commented on GitHub (Dec 9, 2021):
Same issue here
@aktiver commented on GitHub (Dec 9, 2021):
How do you do that?
@elhananjair commented on GitHub (Dec 10, 2021):
Settings -> Privacy & Security -> View Certificates (Under Certificates section) -> click on Authorities tab -> Click on Import and select .pem file
that's it (restart Firefox)
@francwalter commented on GitHub (Feb 22, 2026):
My Root pem was in:
"/Users/f/Library/Application Support/mkcert/rootCA.pem"
With cmd+shift+G I could reach it from the Mac File Picker.