Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Method

Definition

Namespace:
Microsoft.AspNetCore.Hosting
Assembly:
Microsoft.AspNetCore.Server.Kestrel.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
WebHostBuilderKestrelExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?