ListenOptionsHttpsExtensions.UseHttps Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
UseHttps(ListenOptions) |
Nakonfigurujte Kestrel tak, aby používal HTTPS s výchozím certifikátem, pokud je k dispozici. Pokud není nakonfigurovaný žádný výchozí certifikát, vyvolá se to. |
UseHttps(ListenOptions, HttpsConnectionAdapterOptions) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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 HTTPS. K tomu se nepoužívají 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 HTTPS. |
UseHttps(ListenOptions, X509Certificate2) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, String) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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 HTTPS. |
UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, String, String) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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 HTTPS. |
UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>) |
Nakonfigurujte Kestrel tak, aby používal HTTPS. |
UseHttps(ListenOptions)
Nakonfigurujte Kestrel tak, aby používal HTTPS s výchozím certifikátem, pokud je k dispozici. Pokud není nakonfigurovaný žádný výchozí certifikát, vyvolá se to.
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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, HttpsConnectionAdapterOptions)
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, TlsHandshakeCallbackOptions)
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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 pro zpětné volání připojení.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)
Nakonfigurujte Kestrel tak, aby používal 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í pro HTTPS
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, X509Certificate2)
Nakonfigurujte Kestrel tak, aby používal 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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, String)
Nakonfigurujte Kestrel tak, aby používal 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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, StoreName, String)
Nakonfigurujte Kestrel tak, aby používal 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ů, ze které se má certifikát načíst.
- subject
- String
Název subjektu certifikátu, který se má načíst.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)
Nakonfigurujte Kestrel tak, aby používal 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 objektu HttpsConnectionAdapterOptions.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, String, String)
Nakonfigurujte Kestrel tak, aby používal 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
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)
Nakonfigurujte Kestrel tak, aby používal HTTPS. K tomu se nepoužívají 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í povolenou dobu pro metodu handshake protokolu TLS/SSL. To musí být pozitivní a konečné.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, StoreName, String, Boolean)
Nakonfigurujte Kestrel tak, aby používal 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ů, ze které se má certifikát načíst.
- subject
- String
Název subjektu certifikátu, který se má načíst.
- allowInvalid
- Boolean
Určuje, jestli se mají považovat za neplatné certifikáty, například certifikáty podepsané svým držitelem.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>)
Nakonfigurujte Kestrel tak, aby používal 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 objektu HttpsConnectionAdapterOptions.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation)
Nakonfigurujte Kestrel tak, aby používal 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ů, ze které se má certifikát načíst.
- subject
- String
Název subjektu certifikátu, který se má načíst.
- allowInvalid
- Boolean
Urč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ě, ze které chcete certifikát načíst.
Návraty
Hodnota ListenOptions
Platí pro
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>)
Nakonfigurujte Kestrel tak, aby používal 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ů, ze které se má certifikát načíst.
- subject
- String
Název subjektu certifikátu, který se má načíst.
- allowInvalid
- Boolean
Urč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ě, ze které chcete certifikát načíst.
- configureOptions
- Action<HttpsConnectionAdapterOptions>
Akce pro konfiguraci objektu HttpsConnectionAdapterOptions.
Návraty
Hodnota ListenOptions