Sdílet prostřednictvím


ListenOptionsHttpsExtensions.UseHttps Metoda

Definice

Přetížení

UseHttps(ListenOptions)

Pokud je k dispozici, nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS s výchozím certifikátem. To se vyvolá, pokud není nakonfigurovaný žádný výchozí certifikát.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

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

UseHttps(ListenOptions, X509Certificate2)

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

UseHttps(ListenOptions, String)

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

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

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

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

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

UseHttps(ListenOptions, String, String)

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

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

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

UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>)

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

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation)

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

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>)

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

UseHttps(ListenOptions)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

Pokud je k dispozici, nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS s výchozím certifikátem. To se vyvolá, pokud není nakonfigurovaný žádný výchozí certifikát.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^ httpsOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions httpsOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, httpsOptions As HttpsConnectionAdapterOptions) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

httpsOptions
HttpsConnectionAdapterOptions

Možnosti konfigurace PROTOKOLU HTTPS

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Zdroj:
ListenOptionsHttpsExtensions.cs

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.TlsHandshakeCallbackOptions callbackOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * Microsoft.AspNetCore.Server.Kestrel.Https.TlsHandshakeCallbackOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, callbackOptions As TlsHandshakeCallbackOptions) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

callbackOptions
TlsHandshakeCallbackOptions

Možnosti zpětného volání připojení

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, Action<Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, configureOptions As Action(Of HttpsConnectionAdapterOptions)) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akce pro konfiguraci možností protokolu HTTPS

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, X509Certificate2)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serverCertificate);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, serverCertificate As X509Certificate2) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

serverCertificate
X509Certificate2

Certifikát X.509.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, String)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::String ^ fileName);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * string -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, fileName As String) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

fileName
String

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

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Zdroj:
ListenOptionsHttpsExtensions.cs

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Net::Security::ServerOptionsSelectionCallback ^ serverOptionsSelectionCallback, System::Object ^ state);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Net.Security.ServerOptionsSelectionCallback * obj -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, serverOptionsSelectionCallback As ServerOptionsSelectionCallback, state As Object) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Zpětné volání pro konfiguraci možností HTTPS.

state
Object

Stav pro serverOptionsSelectionCallback.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, StoreName, String)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::StoreName storeName, System::String ^ subject);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.StoreName * string -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, storeName As StoreName, subject As String) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

storeName
StoreName

Úložiště certifikátů pro načtení certifikátu z.

subject
String

Název subjektu, který má certifikát načíst.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serverCertificate, Action<Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate, Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.X509Certificate2 * Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, serverCertificate As X509Certificate2, configureOptions As Action(Of HttpsConnectionAdapterOptions)) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

serverCertificate
X509Certificate2

Certifikát X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akce pro konfiguraci HttpsConnectionAdapterOptions.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, String, String)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::String ^ fileName, System::String ^ password);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string? password);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * string * string -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, fileName As String, password As String) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

fileName
String

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

password
String

Heslo potřebné pro přístup k datům certifikátu X.509.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Zdroj:
ListenOptionsHttpsExtensions.cs

Nakonfigurujte Kestrel tak, aby používal PROTOKOL HTTPS. Nepoužívá výchozí certifikáty ani jiné výchozí hodnoty zadané prostřednictvím konfigurace nebo ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Net::Security::ServerOptionsSelectionCallback ^ serverOptionsSelectionCallback, System::Object ^ state, TimeSpan handshakeTimeout);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state, TimeSpan handshakeTimeout);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Net.Security.ServerOptionsSelectionCallback * obj * TimeSpan -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, serverOptionsSelectionCallback As ServerOptionsSelectionCallback, state As Object, handshakeTimeout As TimeSpan) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Zpětné volání pro konfiguraci možností HTTPS.

state
Object

Stav pro serverOptionsSelectionCallback.

handshakeTimeout
TimeSpan

Určuje maximální dobu povolenou pro metodu handshake protokolu TLS/SSL. To musí být kladné a konečné.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, StoreName, String, Boolean)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::StoreName storeName, System::String ^ subject, bool allowInvalid);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.StoreName * string * bool -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, storeName As StoreName, subject As String, allowInvalid As Boolean) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

storeName
StoreName

Úložiště certifikátů pro načtení certifikátu z.

subject
String

Název subjektu, který má certifikát načíst.

allowInvalid
Boolean

Označuje, jestli se mají považovat za neplatné certifikáty, například certifikáty podepsané svým držitelem.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::String ^ fileName, System::String ^ password, Action<Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password, Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string? password, Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * string * string * Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, fileName As String, password As String, configureOptions As Action(Of HttpsConnectionAdapterOptions)) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

fileName
String

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

password
String

Heslo potřebné pro přístup k datům certifikátu X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akce pro konfiguraci HttpsConnectionAdapterOptions.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::StoreName storeName, System::String ^ subject, bool allowInvalid, System::Security::Cryptography::X509Certificates::StoreLocation location);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.StoreName * string * bool * System.Security.Cryptography.X509Certificates.StoreLocation -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, storeName As StoreName, subject As String, allowInvalid As Boolean, location As StoreLocation) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

storeName
StoreName

Úložiště certifikátů pro načtení certifikátu z.

subject
String

Název subjektu, který má certifikát načíst.

allowInvalid
Boolean

Označuje, jestli se mají považovat za neplatné certifikáty, například certifikáty podepsané svým držitelem.

location
StoreLocation

Umístění úložiště pro načtení certifikátu.

Návraty

ListenOptions.

Platí pro

UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>)

Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs
Zdroj:
ListenOptionsHttpsExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^ listenOptions, System::Security::Cryptography::X509Certificates::StoreName storeName, System::String ^ subject, bool allowInvalid, System::Security::Cryptography::X509Certificates::StoreLocation location, Action<Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location, Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions * System.Security.Cryptography.X509Certificates.StoreName * string * bool * System.Security.Cryptography.X509Certificates.StoreLocation * Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseHttps (listenOptions As ListenOptions, storeName As StoreName, subject As String, allowInvalid As Boolean, location As StoreLocation, configureOptions As Action(Of HttpsConnectionAdapterOptions)) As ListenOptions

Parametry

listenOptions
ListenOptions

Konfigurace ListenOptions.

storeName
StoreName

Úložiště certifikátů pro načtení certifikátu z.

subject
String

Název subjektu, který má certifikát načíst.

allowInvalid
Boolean

Označuje, jestli se mají považovat za neplatné certifikáty, například certifikáty podepsané svým držitelem.

location
StoreLocation

Umístění úložiště pro načtení certifikátu.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akce pro konfiguraci HttpsConnectionAdapterOptions.

Návraty

ListenOptions.

Platí pro