Skip to content
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

[Https] Add FAQ for troubleshooting #13927

Closed
javiercn opened this issue Aug 20, 2019 · 2 comments
Closed

[Https] Add FAQ for troubleshooting #13927

javiercn opened this issue Aug 20, 2019 · 2 comments

Comments

@javiercn
Copy link
Member

javiercn commented Aug 20, 2019

Can we add to the doc an FAQ to troubleshoot what's happening when the certificate appears to not be trusted by the browser despite running the tool? This would be per platform:

All cases

  • run dotnet devcerts https --clean and dotnet devcerts https --trust.
  • Close any open browser instance you have opened. (Cert trust is cached by the browser).

Docker

  • If you are using docker and remove the C:\Users\<user>\AppData\Roaming\ASP.NET\Https folder if you are using docker.
  • Clean your solution completely (get rid of any bin, obj folders).
  • Restart visual studio/VS Code/VS Mac.

If that doesn't fix it.

Windows

  • Check the certificates in the certificate store. There should be a localhost certificate with the ASP.NET Core HTTPS development certificate friendly name both under Current User -> Personal -> Certificates and Current User -> Trusted root certification authorities -> Certificates
  • Remove all the found certificates from both Personal and Trusted root certification authorities. (Be careful not to remove the IIS Express localhost certificate)
  • run dotnet devcerts https --clean and dotnet devcerts https --trust and open your app in a new browser instance.

OS X

  • Open KeyCain Access
  • Select the System keychain
  • Check for the presence of a localhost certificate
  • Check that it contains a + symbol on the icon to indicate its trusted for all users.
  • Remove the certificate from the system keychain.
  • run dotnet devcerts https --clean and dotnet devcerts https --trust and open your app in a new browser instance.
@guardrex
Copy link
Collaborator

@guardrex
Copy link
Collaborator

Moved to #13928.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants