Sdílet prostřednictvím


KestrelServerOptionsHttpsExtensions.UseHttps Metoda

Definice

Přetížení

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS.

UseHttps(KestrelServerOptions, X509Certificate2)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS.

UseHttps(KestrelServerOptions, String)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS.

UseHttps(KestrelServerOptions, String, String)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS.

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL 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

Parametry

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions ke konfiguraci.

httpsOptions
HttpsConnectionFilterOptions

Možnosti konfigurace PROTOKOLU HTTPS

Návraty

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Platí pro

UseHttps(KestrelServerOptions, X509Certificate2)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL 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

Parametry

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions ke konfiguraci.

serverCertificate
X509Certificate2

Certifikát X.509.

Návraty

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Platí pro

UseHttps(KestrelServerOptions, String)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL 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

Parametry

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions ke konfiguraci.

fileName
String

Název souboru certifikátu vzhledem k adresáři, který obsahuje soubory obsahu aplikace.

Návraty

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Platí pro

UseHttps(KestrelServerOptions, String, String)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL 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

Parametry

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions ke konfiguraci.

fileName
String

Název souboru certifikátu vzhledem k adresáři, který obsahuje soubory obsahu aplikace.

password
String

Heslo vyžadované pro přístup k datům certifikátu X.509.

Návraty

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Platí pro