You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find a Visual Studio Github to report this, but basically the out of the box dotnet templates that most dotnet developers will be using as their first foray into Docker do not work.
The dotnet templates host web services over HTTPS and as such the docker launch target is configured to use SSL, however there is no automatic set up/default creation of development certificates so debugging docker will never work.
If you target something like IIS Express or Kestrel you will be prompted to generate development certificates and Visual Studio will do the registration for you.
The text was updated successfully, but these errors were encountered:
I'm able to reproduce this on a fresh setup. Looks like either a restart or a manual $ dotnet dev-certs https --trust will fix it, but we should really prevent first time customers from hitting this.
I did a bit more digging and found that this is not limited to container debugging and restarting the browser so it refreshes certificates will also correct the issue.
This is known and being tracked by the .NET folks here: dotnet/core#8588
Again, thanks for reporting this. I'll leave this open for now and see about adding a note in the container tools doc about closing all browser windows and retrying.
Cross post from dotnet/aspnetcore#57181
I couldn't find a Visual Studio Github to report this, but basically the out of the box dotnet templates that most dotnet developers will be using as their first foray into Docker do not work.
The dotnet templates host web services over HTTPS and as such the docker launch target is configured to use SSL, however there is no automatic set up/default creation of development certificates so debugging docker will never work.
If you target something like IIS Express or Kestrel you will be prompted to generate development certificates and Visual Studio will do the registration for you.
The text was updated successfully, but these errors were encountered: