mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #120] ERROR: no Firefox and/or Chrome/Chromium security databases found #68
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#68
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 @Artarex on GitHub (Jan 16, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/120
Hey. I installed mkcert via rpm -Uvh harbottle-main-release*rpm
yum install mkcert
On my centos 7.
When i try to use "mkcert -install" it gives me the following error
"Using the local CA at "/root/.local/share/mkcert" ✨
ERROR: no Firefox and/or Chrome/Chromium security databases found
"
Any idea how to fix this?
@adamdecaf commented on GitHub (Jan 16, 2019):
Do you know where the database is? I assume on centos it's not at
$HOME/.pki/nssdb.@Artarex commented on GitHub (Jan 16, 2019):
Hey.
I think it is located in /etc/pki/nssdb
I have a cert8, cert9, key3 key4 and secmod.db in this folder
What do I need to change that it works?
Thanks for your help
@adamdecaf commented on GitHub (Jan 17, 2019):
@Artarex would you be able to pull down this Pull Request and try?
Branch: https://github.com/adamdecaf/mkcert/tree/more-nss-locations
@Artarex commented on GitHub (Jan 17, 2019):
Thanks for the fast response. Would it be possible to create a pre build binary for me?
My Centos has some problems with compiling and installing Go, and I dont have the time the next 2-3 days to figure out why. (CentOS is "fun" sometimes)
So i would appreciate a pre build binary
Thanks
@adamdecaf commented on GitHub (Jan 17, 2019):
@FiloSottile Do you object to me uploading a binary?
@Artarex commented on GitHub (Jan 17, 2019):
I compiled the source on windows and moved the new compiled mkcert file to my bin folder and replaced the old one.
mkcert -install did not give me an error this time.
However i did not get these 2 messages:
"The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires restart)! 🦊"
So thats my console output:
Edit: I still had the old files in /root/.local/share/mkcert
after deleting them i got this console output:
[root@wph5ak0 ~]# mkcert -install
Created a new local CA at "/root/.local/share/mkcert" 💥
The local CA is now installed in the system trust store! ⚡️
The "The local CA is now installed in the Firefox trust store (requires restart)! 🦊" Is still missing.
@adamdecaf commented on GitHub (Jan 17, 2019):
Do you know if the Firefox binary is installed somewhere other than
/usr/bin/firefox?@Artarex commented on GitHub (Jan 17, 2019):
My Centos7 had no Firefox binary.
I installed firefox via yum install firefox and now the firefox binary is in the right directory.
If I do now mkcert -install it gives the error again:
Created a new local CA at "/root/.local/share/mkcert" 💥
The local CA is now installed in the system trust store! ⚡️
ERROR: no Firefox and/or Chrome/Chromium security databases found
The databases are still at the same location in etc/pki/nssdb

I will Test your next ideas tomorrow. It's late here.
@adamdecaf commented on GitHub (Jan 22, 2019):
I had to start Firefox/Chrome and load an HTTPS page before the NSS database was written.
@RAM1160 commented on GitHub (Dec 4, 2019):
test your path to mkcert : mkcert -CAROOT
if its /root/.local/share/mkcert you have to uninstall mkcert and reinstall it without root
mkcert -install
the path should look something like this:
home/YourAccount/.local/share/mkcert
FF & Chrome do not allow certs from root
Hope that helps
@salehawal commented on GitHub (Oct 13, 2021):
in my case it was because i run the command as "sudo", so what i did i uninstall it and then reinstall it without "sudo"
@justanothersynth commented on GitHub (Jun 27, 2023):
Thanks @adamdecaf! This did it for me.
@Letlaka commented on GitHub (Jul 12, 2023):
This worked for me too, Thanks!
@144mdgross commented on GitHub (Jan 28, 2025):
same! this also worked for me