mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #12] failed to execute "certutil -A" #9
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#9
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 @Yahatix on GitHub (Jun 28, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/12
This error appears when i do "mkcert -install"
@adamdecaf commented on GitHub (Jun 28, 2018):
What version of Firefox are you on? IIRC it was Firefox 57/58 that switched to the cert9.db format.
Edit: I see mkcert is trying to operate on any cert*.db file found, which I haven't been able to get NSS 3.35+ to support.
@adamdecaf commented on GitHub (Jun 28, 2018):
@Yahatix
Could you try out https://github.com/FiloSottile/mkcert/pull/13 and see if you still get an error?Have you tried with this change
github.com/FiloSottile/mkcert@1bc392c3cc?@Yahatix commented on GitHub (Jun 28, 2018):
@adamdecaf I just tried with the newest commit and it doesnt work. I am using the latest Firefox beta so 62.0b3
@adamdecaf commented on GitHub (Jun 28, 2018):
@Yahatix Does the user running
mkcerthave permissions for that file?https://stackoverflow.com/a/39356437
@Yahatix commented on GitHub (Jun 29, 2018):
if you mean the cert9.db file then yes and the user has access to all the other files in this folder also
@FiloSottile commented on GitHub (Jul 4, 2018):
I added some debug output, if you could rerun the latest build and report its output it would be helpful. @Cui-y @Yahatix
@Yahatix commented on GitHub (Jul 4, 2018):
OK so the debug output says:
I think this happened when i opened the Folder in the Finder.
Upon deleting the .DS_Store file it now is working as it should.
@ansemjo commented on GitHub (Jul 4, 2018):
I have also hit this issue just now:
However, when adding the certificate manually through Firefox' certitifcate manager it says the certificate authority is already installed .. during certificate installation
mkcertstill warns that it is not installed in the trust store. (I have verified that it is.)@icing commented on GitHub (Jul 4, 2018):
Same here:
When run manually:
@needpower commented on GitHub (Jul 4, 2018):
Have similar issue:
But there is also an error:
Log output:
Can anyone advice a workaround? Is this a permissions problem?
@ansemjo commented on GitHub (Jul 4, 2018):
I hacked together some debugging programm with a couple of
fmt.Println()'s and the problem appears to be that!os.IsNotExist(err)also returnstruefornot a directoryerrors:github.com/FiloSottile/mkcert@54cdb2c715/truststore_nss.go (L104)I'd suggest either checking that
profileis a directory before joining the path or checkingerr == nil?debugging script
Edit: this patch appears to fix it for me:
@johanvanhelden commented on GitHub (Jul 4, 2018):
As requested, I hereby present the output:
@FiloSottile commented on GitHub (Jul 4, 2018):
Thanks @ansemjo for the fix!
@Ronserruya commented on GitHub (Jul 12, 2018):
Got this error now, looks like this fix was merged 8 days ago, I am using the binaries from 6 days ago.
@adamdecaf commented on GitHub (Jul 12, 2018):
@FiloSottile Is there a reason cert9.db isn't prioritized? Firefox upgrades users to cert9.db and then stops using cert8.db/key3.db.
On my mac I've got a cert8.db/key3.db file left around too.
https://github.com/FiloSottile/mkcert/pull/13 fixed this issue for me locally before https://github.com/FiloSottile/mkcert/pull/33 was merged.