KestrelServerOptionsHttpsExtensions.UseHttps KestrelServerOptionsHttpsExtensions.UseHttps KestrelServerOptionsHttpsExtensions.UseHttps Method

Definition

Overloads

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel to use HTTPS.

UseHttps(KestrelServerOptions, X509Certificate2) UseHttps(KestrelServerOptions, X509Certificate2) UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel to use HTTPS.

UseHttps(KestrelServerOptions, String) UseHttps(KestrelServerOptions, String) UseHttps(KestrelServerOptions, String)

Configure Kestrel to use HTTPS.

UseHttps(KestrelServerOptions, String, String) UseHttps(KestrelServerOptions, String, String) UseHttps(KestrelServerOptions, String, String)

Configure Kestrel to use HTTPS.

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel to use HTTPS.

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilterOptions httpsOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilterOptions -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, httpsOptions As HttpsConnectionFilterOptions) As KestrelServerOptions

Parameters

options
KestrelServerOptions KestrelServerOptions KestrelServerOptions

The Microsoft.AspNetCore.Server.KestrelServerOptions to configure.

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

UseHttps(KestrelServerOptions, X509Certificate2) UseHttps(KestrelServerOptions, X509Certificate2) UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel to use HTTPS.

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, serverCertificate As X509Certificate2) As KestrelServerOptions

Parameters

options
KestrelServerOptions KestrelServerOptions KestrelServerOptions

The Microsoft.AspNetCore.Server.KestrelServerOptions to configure.

serverCertificate
X509Certificate2 X509Certificate2 X509Certificate2

The X.509 certificate.

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

UseHttps(KestrelServerOptions, String) UseHttps(KestrelServerOptions, String) UseHttps(KestrelServerOptions, String)

Configure Kestrel to use HTTPS.

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string fileName);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * string -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, fileName As String) As KestrelServerOptions

Parameters

options
KestrelServerOptions KestrelServerOptions KestrelServerOptions

The Microsoft.AspNetCore.Server.KestrelServerOptions to configure.

fileName
String String String

The name of a certificate file, relative to the directory that contains the application content files.

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

UseHttps(KestrelServerOptions, String, String) UseHttps(KestrelServerOptions, String, String) UseHttps(KestrelServerOptions, String, String)

Configure Kestrel to use HTTPS.

public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string fileName, string password);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * string * string -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, fileName As String, password As String) As KestrelServerOptions

Parameters

options
KestrelServerOptions KestrelServerOptions KestrelServerOptions

The Microsoft.AspNetCore.Server.KestrelServerOptions to configure.

fileName
String String String

The name of a certificate file, relative to the directory that contains the application content files.

password
String String String

The password required to access the X.509 certificate data.

Returns

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Applies to