-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to trust development certificate #10422
Comments
@anurse is this something that you can take a look at? |
It seems from the list of commands that you removed the certificate but haven't added it back.
|
He tried adding it, several times actually. @LouisT123 please execute the following and paste results here: clean, check, trust and check again. |
@livarcocc you can see in the output he did try trust. Anands-MBP:dasdasdakjfh louistaing$ dotnet dev-certs https --trust |
@sayedihashimi Executed:
|
There can be something in the environment that is causing the tool to not work correctly. I'll double check tomorrow on my Mac to see if I repro the behavior on a clean machine and I'll see what info we can gather to figure out what's going on. |
We found a bug with the dev-certs tool that caused issues with --clean and --check. We'll be fixing it in preview9. It's hard to see if your scenario is hitting this issue but it's a good guess that it is |
@BrennanConroy thanks for the follow up. Perhaps when you have a build with the fix then @LouisT123 can try it out to confirm that it's working for him. When do you think you may have a new build with the fix? |
I'm going to move this to aspnet/AspNetCore since we found actionable work (probably could've merged it earlier anyway :)). An issue link will be posted next, please move discussion to that thread. Thanks for the report @LouisT123 ! |
This issue was moved to dotnet/aspnetcore#13175 |
Encountered the same issue on macOS. As a solution, in the keychain, remove the old localhost certificate under 'System' and recreate it via the dotnet commands described in the docs. It will be placed under 'login'. |
Thank you ncbb. I've formalized this in a SOF answer as well : https://stackoverflow.com/questions/64017267/dotnet-dev-certs-certificate-not-trusted/66888581#66888581 |
Working with @sayedihashimi as an intern at Microsoft, and I'm running into this blocking issue. He was unable to figure out what was going on.
Steps to reproduce
dotnet new web
dotnet build
dotnet run
Expected behavior
Web app runs
Actual behavior
Getting error about development certificate
Environment data
dotnet --info
output:The text was updated successfully, but these errors were encountered: