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
  • 8,250
  • 11
  • 32
  • 40
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
  • 1
    Read this https://learn.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