Transition from ASP .NET CORE 3.1 to .NET 6.0 Framework, Certificate Issue

Jovencio Sebucao 1 Reputation point
2022-09-02T01:28:58.17+00:00

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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,283 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,362 questions
{count} votes