AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

dotnet dev-certs https --trust Does not work for Microsoft Edge Chromium based

Open josuemb opened this issue 6 years ago • 5 comments

When I run:

dotnet dev-certs https --trust

The command does not work for Microsoft Edge Chromium based (even when it works for Google Chrome).

Please add support for this Browser.

josuemb avatar Jan 27 '20 18:01 josuemb

I already checked the current code for dev-certs tool. It looks simple. If you guide me a little I can help to fix it.

josuemb avatar Jan 27 '20 18:01 josuemb

After applying:

https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-3.1&tabs=visual-studio#troubleshoot-certificate-problems

And close/reopen the browser the problem has gone.

Thanks.

josuemb avatar Jan 27 '20 18:01 josuemb

After applying:

docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-3.1&tabs=visual-studio#troubleshoot-certificate-problems

And close/reopen the browser the problem has gone.

Thanks.

@josuemb, can you share the specific steps or section you followed in that link to resolve the issue with MS edge browser? Also, were you running the project directly on windows or via docker-compose project (using docker desktop)?

abjoseph avatar May 25 '24 18:05 abjoseph

All platforms - certificate not trusted

dotnet dev-certs https --clean
dotnet dev-certs https --trust

rahadur avatar Nov 22 '24 13:11 rahadur

All platforms - certificate not trusted

dotnet dev-certs https --clean dotnet dev-certs https --trust

In case someone else comes across this: If the certificate is still not trusted after this (could happen when running dotnet under a different user context)

  1. Export the untrusted cert (Export will be on the Details tab of the Edge Certificate Viewer):
Image Image
  1. Open certmgr.msc and import the certificate into the Trusted Root Certification Authorities store for the current user
  2. Restart Edge by typing edge://restart in the address bar

gotmoo avatar Sep 17 '25 11:09 gotmoo