-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Windows10 Professional 64-bit can not install CA certificate #104
Comments
+1. Running the tool with administrator privileges and setting the security permissions on the AppData\Local\mkcert folder does not help either. |
Same problem, both with binary built from source in Go 1.11.4 and on the pre-built binaries. |
cc @cretz Do you have any ideas? |
Hrmm, I haven't used the tool in a bit. I will investigate at some point this week. I wonder if a recent update caused this as I had used it with success many times on win 10 before. |
I am having trouble replicating on win10 pro. It works fine for me. Y'all's error message appears to be from CertAddEncodedCertificateToStore and my research says it is due to some registry ACLs. I see a post with suggestions on resetting some ACLs to fix it, but I can definitely understand a fear of blindly trusting it. If I must I can give a tiny bit of Go code or C++ code or whatever that y'all can pass to MS since this seems to be a Windows error. |
If someone wants to try it since I cannot replicate, download SubInAcl, then run:
Click to see my output to compare
That's just a guess, there are other registry keys that may be touched too. Based on that previous answer, if anyone having this problem is willing, please run the following and see if it fixes it:
and
|
Hello, I found this answer yesterday, but still can not solve, I checked the folder permissions no problem, the problem has been submitted to Microsoft, I hope they can give a solution! |
Solution: Switch to the highest privilege account Administrator to install successfully, you can not switch to other accounts under the highest account installation, so the certificate will still be invalid, please ensure that the system under the highest privilege account operates. |
@wickpwn solution is not working for me: Im logged in as my admin account and running
ive tried with a couple of different mkcert releases with the same result Please let me know if there is something I missed |
|
FWIW #148 I used the Scoop install and then a regular user account and Powershell and had no issue. My user account is part of the administrator user group. No other changes needed. |
I ran into the same error. OS Version
My workaround was to simply take the
|
We |
I am not getting a failure on mkcert -install but the root ca was not installed into the local Trusted Root Cert Auth; Manually importing the rootCA.pem did the trick. Is there more verbose logging that can be enabled? |
C:\WINDOWS\system32>mkcert -install
Using the local CA at "C:\Users\pwn\AppData\Local\mkcert" ✨
ERROR: add cert: Failed adding cert: The access control list (ACL) structure is invalid.
I tried to search for google-related unsolvable (ACL) issues, but did not find a suitable solution.
The text was updated successfully, but these errors were encountered: