1

Seems setting Https is not enough, How do I configure Kestrel with development certificate?

  return WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .UseUrls("http://localhost:8001", "https://localhost:8002")
                .UseSetting("detailedErrors", "true")
                .CaptureStartupErrors(true)
                .Build();

https://stackoverflow.com/a/46621789/1431250

Do I need to create a development certificate and install in the machine and put the name, or can attaching .pfx certificate be relaxed in development mode?

Simply Ged
  • 7,422
  • 10
  • 30
  • 38
Abhijeet
  • 13,006
  • 26
  • 83
  • 159
  • 1
    Read this https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.1#endpoint-configuration – Jamie Rees Sep 26 '18 at 07:28

0 Answers0