aspnetcore
aspnetcore copied to clipboard
Kestrel Throws and Fails to Start when ASPNETCORE_URLS Contains `https`
Describe the bug
Kestrel throws and fails to start when ASPNETCORE_URLS contains an HTTPS address
To Reproduce
Steps to reproduce the behavior:
- Using ASP.NET Core 2.2 (I'm using the Docker image)
- Set
ASPNETCORE_URLStohttps://+:443,http://+:80 - Build the application, and use
dotnet blah.dll - See error
Expected behavior
Kestrel starts and listens on https://[::]:443 and http://[::]:80
Screenshots

Additional context
.NET Core SDK (reflecting any global.json):
Version: 2.2.100
Commit: 51868761f2
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/2.2.100/
Host (useful for support):
Version: 2.2.0
Commit: 1249f08fed
.NET Core SDKs installed:
2.2.100 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Check value of ASPNETCORE_URLS, requires semicolon as separator.
You are absolutely correct, thanks! Somehow in all my confusion, I missed that detail :/