I have installed the .Net Core SDK and I am trying to install the developer certificates so that i can work on the HTTPS projects which come by default
I have run:
dotnet dev-certs https
but i encounter the error:
There was an error saving the HTTPS developer certificate to the current user personal certificate store.
I restarted the computer, ensured no browser was running and tried again but it still doesnt work.
Any help would be greatly appreciated
EDIT:
I am using Windows 8.1, and my .net Core version is 2.1.5
Try this command:
and then
If that doesn't work try deleting your localhost certificate manually and then run those commands again.
I had the very same problem but on Mac. There I had to uninstall .net core SDK and delete all the folders in the library too. Which actually might be a solution as well. And then I ran those commands again and they worked.
Anyway if it is not mandatory for you to use https in your development stage you can comment
inside your Configure method in your startup.cs and remove https addresses inside Properties/launchSettings.json