¿Cómo usar HTTPS / SSL con Kestrel en ASP.NET Core 2.x?
Actualmente estoy usando ASP.NET Core 2.xy podía hacer que Kestrel usara HTTPS / SSL simplemente colocándolo en elUseUrls()
método así:
var host = new WebHostBuilder()
.UseUrls("http://localhost", "https://111.111.111.111")
.UseKestrel()
.Build();
Pero ahora tengo la excepción:
System.InvalidOperationException:
HTTPS endpoints can only be configured using KestrelServerOptions.Listen().
¿Cómo configuro Kestrel para usar SSL en ASP.NET Core 2.x?