'C# ASP.NET SSL received a record that exceeded the maximum permissible length

I setup a simple ASP.NET Core REST Api. I had to run:

$ dotnet dev-certs https --trust

As a helpful error message suggested. But now whenever I run the app I get:

An error occurred during a connection to localhost:8080. SSL received a record that exceeded the maximum permissible length.

A quick search doesn't turn up much of help, but it has to be a common issue. Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source