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

Docker build targets included with default Visual Studio templates don't work because HTTPS is half set up #437

Open
catmanjan opened this issue Aug 8, 2024 · 2 comments
Assignees

Comments

@catmanjan
Copy link

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.

@fiveisprime
Copy link
Member

Thanks for taking the time to report this!

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.

@fiveisprime
Copy link
Member

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.

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

No branches or pull requests

3 participants