WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Method

Definition

In UseKestrelCore(IWebHostBuilder) scenarios, it may be necessary to explicitly opt in to certain HTTPS functionality. For example, if ASPNETCORE_URLS includes an https:// address, UseKestrelHttpsConfiguration(IWebHostBuilder) will enable configuration of HTTPS on that endpoint.

Has no effect in UseKestrel(IWebHostBuilder) scenarios.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrelHttpsConfiguration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseKestrelHttpsConfiguration : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrelHttpsConfiguration (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Applies to