Compartir a través de


KestrelServerOptionsHttpsExtensions.UseHttps Método

Definición

Sobrecargas

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel para que use HTTPS.

UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel para que use HTTPS.

UseHttps(KestrelServerOptions, String)

Configure Kestrel para que use HTTPS.

UseHttps(KestrelServerOptions, String, String)

Configure Kestrel para que use HTTPS.

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel para que use HTTPS.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionFilterOptions ^ httpsOptions);
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

Parámetros

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions que se va a configurar.

httpsOptions
HttpsConnectionFilterOptions

Opciones para configurar HTTPS.

Devoluciones

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Se aplica a

UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel para que use HTTPS.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serverCertificate);
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

Parámetros

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions que se va a configurar.

serverCertificate
X509Certificate2

Certificado X.509.

Devoluciones

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Se aplica a

UseHttps(KestrelServerOptions, String)

Configure Kestrel para que use HTTPS.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::String ^ fileName);
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

Parámetros

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions que se va a configurar.

fileName
String

Nombre de un archivo de certificado, en relación con el directorio que contiene los archivos de contenido de la aplicación.

Devoluciones

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Se aplica a

UseHttps(KestrelServerOptions, String, String)

Configure Kestrel para que use HTTPS.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::String ^ fileName, System::String ^ password);
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

Parámetros

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions que se va a configurar.

fileName
String

Nombre de un archivo de certificado, en relación con el directorio que contiene los archivos de contenido de la aplicación.

password
String

Contraseña requerida para obtener acceso a los datos del certificado X.509.

Devoluciones

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Se aplica a