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:
dotnet dev-certs https --clean
and then
dotnet dev-certs https
dotnet dev-certs https --trust
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
app.UseHttpsRedirection();
inside your Configure method in your startup.cs and remove https addresses inside Properties/launchSettings.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With