Transition from ASP .NET CORE 3.1 to .NET 6.0 Framework, Certificate Issue
I have an existing project using ASP .NET Core 3.1 framework. I use Kestrel as web server. Then, I updated the framework into .NET 6.0. And when I run it locally or I run it on Linux server using Kestrel, I always get this error.
System.InvalidOperationException: 'The non-HTTPS endpoint Http includes HTTPS-only configuration for Certificate.'
Even if I remove the HTTPS redirection, the error persist.
Any feedback or information that can help fix my issue is welcome. Thank you.
Could you please tell me how you run your application? Inside the VS or dotnet run to start the published file? Could you please share the program.cs or launchsettings.json with us to check?
Sorry for late reply. I run the code using Kestrel Service. Here is the Program.cs
Here is the launchsettings.json
Thanks for sharing. If you are debugging directly inside the VS, I suggest you could try to modify your launchsettings like below, add the application url.
Sign in to comment