aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Kestrel Throws and Fails to Start when ASPNETCORE_URLS Contains `https`

Open berwyn opened this issue 7 years ago • 2 comments

Describe the bug

Kestrel throws and fails to start when ASPNETCORE_URLS contains an HTTPS address

To Reproduce

Steps to reproduce the behavior:

  1. Using ASP.NET Core 2.2 (I'm using the Docker image)
  2. Set ASPNETCORE_URLS to https://+:443,http://+:80
  3. Build the application, and use dotnet blah.dll
  4. See error

Expected behavior

Kestrel starts and listens on https://[::]:443 and http://[::]:80

Screenshots

image

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

berwyn avatar Dec 31 '18 04:12 berwyn

Check value of ASPNETCORE_URLS, requires semicolon as separator.

dcarr42 avatar Dec 31 '18 14:12 dcarr42

You are absolutely correct, thanks! Somehow in all my confusion, I missed that detail :/

berwyn avatar Dec 31 '18 15:12 berwyn