dotnet dev-certs https --trust Does not work for Microsoft Edge Chromium based
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.
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.
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.
After applying:
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)?
All platforms - certificate not trusted
dotnet dev-certs https --clean
dotnet dev-certs https --trust
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)
- Export the untrusted cert (Export will be on the Details tab of the Edge Certificate Viewer):
- Open
certmgr.mscand import the certificate into the Trusted Root Certification Authorities store for the current user - Restart Edge by typing
edge://restartin the address bar