mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Error on Installing Mkcert on Windows 10 : Access Denied

Open zedd9165 opened this issue 4 years ago • 2 comments

Hello Gentlemen,

I have been facing with an error while installing mkcert using powershell as admin. Please note that my User account on windows in a part of Admin with all privileges and yet I have the following error. Please help me out on this.

Please note that I had install mkcert previous while following the DDEV installation and upon installing Drupal9, and accessing the site I was ending up with nginx error which made me to delete and reinstall Mkcert. Upon trying to install Mkcert again I end up with the below error.

also this is what my Ubuntu Distro says upon runnning echo $CAROOT : /mnt/c/Users/zeesh/AppData/Local/mkcert

PS C:\WINDOWS\system32> mkcert -install ERROR: add cert: failed adding cert: Access is denied.

zedd9165 avatar Aug 19 '21 00:08 zedd9165

Have you tried running Powershell as administrator (I do not mean logging in with the administrator account) to make sure the command runs in an elevated shell? To run it as administrator, find Powershell as you would do so normally, but instead of opening it, right click on it and select open as administrator.

minecraftchest1 avatar Aug 24 '21 20:08 minecraftchest1

Until #453 is merged I created a PowerShell script a while back that'll install the RootCA certs for you and replace it if the thumbprints are different/tell you if its already installed. Feel free to use if it if its to your liking. Just run it in the same directory as the rootCA pem files

Gist link

LichLord91 avatar Jul 02 '22 21:07 LichLord91