ListenOptionsHttpsExtensions.UseHttps Metoda

Definicja

Przeciążenia

UseHttps(ListenOptions)

Skonfiguruj protokół Kestrel do używania protokołu HTTPS z certyfikatem domyślnym, jeśli jest dostępny. Spowoduje to zgłoszenie, jeśli nie skonfigurowano certyfikatu domyślnego.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, X509Certificate2)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, String)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, String, String)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

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

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

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

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

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

Skonfiguruj platformę Kestrel do używania protokołu HTTPS.

UseHttps(ListenOptions)

Skonfiguruj protokół Kestrel do używania protokołu HTTPS z certyfikatem domyślnym, jeśli jest dostępny. Spowoduje to zgłoszenie, jeśli nie skonfigurowano certyfikatu domyślnego.

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

Element do skonfigurowania ListenOptions .

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub 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

Element do skonfigurowania ListenOptions .

httpsOptions
HttpsConnectionAdapterOptions

Opcje konfigurowania protokołu HTTPS.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub 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

Element do skonfigurowania ListenOptions .

callbackOptions
TlsHandshakeCallbackOptions

Opcje dla wywołania zwrotnego dla poszczególnych połączeń.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

configureOptions
Action<HttpsConnectionAdapterOptions>

Akcja konfigurowania opcji dla protokołu HTTPS.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, X509Certificate2)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

serverCertificate
X509Certificate2

Certyfikat X.509.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, String)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

fileName
String

Nazwa pliku certyfikatu względem katalogu zawierającego pliki zawartości aplikacji.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub 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

Element do skonfigurowania ListenOptions .

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Wywołanie zwrotne w celu skonfigurowania opcji protokołu HTTPS.

state
Object

Stan dla .serverOptionsSelectionCallback

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, StoreName, String)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

storeName
StoreName

Magazyn certyfikatów do załadowania certyfikatu z.

subject
String

Nazwa podmiotu certyfikatu do załadowania.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

serverCertificate
X509Certificate2

Certyfikat X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akcja konfigurowania elementu HttpsConnectionAdapterOptions.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, String, String)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

fileName
String

Nazwa pliku certyfikatu względem katalogu zawierającego pliki zawartości aplikacji.

password
String

Hasło wymagane do uzyskania dostępu do danych certyfikatu X.509.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Skonfiguruj platformę Kestrel do używania protokołu HTTPS. Nie używa to certyfikatów domyślnych ani innych wartości domyślnych określonych za pośrednictwem konfiguracji lub 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

Element do skonfigurowania ListenOptions .

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Wywołanie zwrotne w celu skonfigurowania opcji protokołu HTTPS.

state
Object

Stan dla .serverOptionsSelectionCallback

handshakeTimeout
TimeSpan

Określa maksymalny dozwolony czas uzgadniania TLS/SSL. Musi to być pozytywne i skończone.

Zwraca

Element ListenOptions.

Dotyczy

UseHttps(ListenOptions, StoreName, String, Boolean)

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

storeName
StoreName

Magazyn certyfikatów do załadowania certyfikatu z.

subject
String

Nazwa podmiotu certyfikatu do załadowania.

allowInvalid
Boolean

Wskazuje, czy należy wziąć pod uwagę nieprawidłowe certyfikaty, takie jak certyfikaty z podpisem własnym.

Zwraca

Element ListenOptions.

Dotyczy

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

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

fileName
String

Nazwa pliku certyfikatu względem katalogu zawierającego pliki zawartości aplikacji.

password
String

Hasło wymagane do uzyskania dostępu do danych certyfikatu X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akcja konfigurowania elementu HttpsConnectionAdapterOptions.

Zwraca

Element ListenOptions.

Dotyczy

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

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

storeName
StoreName

Magazyn certyfikatów do załadowania certyfikatu z.

subject
String

Nazwa podmiotu certyfikatu do załadowania.

allowInvalid
Boolean

Wskazuje, czy należy wziąć pod uwagę nieprawidłowe certyfikaty, takie jak certyfikaty z podpisem własnym.

location
StoreLocation

Lokalizacja magazynu do załadowania certyfikatu z.

Zwraca

Element ListenOptions.

Dotyczy

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

Skonfiguruj platformę Kestrel do używania protokołu 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

Element do skonfigurowania ListenOptions .

storeName
StoreName

Magazyn certyfikatów do załadowania certyfikatu z.

subject
String

Nazwa podmiotu certyfikatu do załadowania.

allowInvalid
Boolean

Wskazuje, czy należy wziąć pod uwagę nieprawidłowe certyfikaty, takie jak certyfikaty z podpisem własnym.

location
StoreLocation

Lokalizacja magazynu do załadowania certyfikatu z.

configureOptions
Action<HttpsConnectionAdapterOptions>

Akcja konfigurowania elementu HttpsConnectionAdapterOptions.

Zwraca

Element ListenOptions.

Dotyczy