WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Method
Definition
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.