Condividi tramite


ListenOptionsHttpsExtensions.UseHttps Metodo

Definizione

Overload

UseHttps(ListenOptions)

Configurare Kestrel per l'uso di HTTPS con il certificato predefinito, se disponibile. Verrà generata se non è configurato alcun certificato predefinito.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, X509Certificate2)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, String)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, String, String)

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

Configura Kestrel per l'uso di HTTPS.

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

Configura Kestrel per l'uso di HTTPS.

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

Configura Kestrel per l'uso di HTTPS.

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

Configura Kestrel per l'uso di HTTPS.

UseHttps(ListenOptions)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configurare Kestrel per l'uso di HTTPS con il certificato predefinito, se disponibile. Verrà generata se non è configurato alcun certificato predefinito.

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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

httpsOptions
HttpsConnectionAdapterOptions

Opzioni per configurare HTTPS.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

callbackOptions
TlsHandshakeCallbackOptions

Opzioni per un callback di connessione.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

configureOptions
Action<HttpsConnectionAdapterOptions>

Azione per configurare le opzioni per HTTPS.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, X509Certificate2)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

serverCertificate
X509Certificate2

Certificato X.509.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, String)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

fileName
String

Nome di un file di certificato, relativo alla directory che contiene i file di contenuto dell'applicazione.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Callback per configurare le opzioni HTTPS.

state
Object

Stato per l'oggetto serverOptionsSelectionCallback.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, StoreName, String)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

storeName
StoreName

Archivio certificati da cui caricare il certificato.

subject
String

Nome soggetto del certificato da caricare.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

serverCertificate
X509Certificate2

Certificato X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Azione per configurare .HttpsConnectionAdapterOptions

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, String, String)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

fileName
String

Nome di un file di certificato, relativo alla directory che contiene i file di contenuto dell'applicazione.

password
String

Password necessaria per accedere ai dati del certificato X.509.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di HTTPS. Questo non usa i certificati predefiniti o altri valori predefiniti specificati tramite config o 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Callback per configurare le opzioni HTTPS.

state
Object

Stato per l'oggetto serverOptionsSelectionCallback.

handshakeTimeout
TimeSpan

Specifica la quantità massima di tempo consentita per l'handshake TLS/SSL. Questo deve essere positivo e finito.

Restituisce

Oggetto ListenOptions.

Si applica a

UseHttps(ListenOptions, StoreName, String, Boolean)

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

storeName
StoreName

Archivio certificati da cui caricare il certificato.

subject
String

Nome soggetto del certificato da caricare.

allowInvalid
Boolean

Indica se devono essere considerati certificati non validi, ad esempio certificati autofirmato.

Restituisce

Oggetto ListenOptions.

Si applica a

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

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

fileName
String

Nome di un file di certificato, relativo alla directory contenente i file di contenuto dell'applicazione.

password
String

Password necessaria per accedere ai dati del certificato X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Azione per configurare .HttpsConnectionAdapterOptions

Restituisce

Oggetto ListenOptions.

Si applica a

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

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

storeName
StoreName

Archivio certificati da cui caricare il certificato.

subject
String

Nome soggetto per il caricamento del certificato.

allowInvalid
Boolean

Indica se devono essere considerati certificati non validi, ad esempio certificati autofirmato.

location
StoreLocation

Percorso dell'archivio da cui caricare il certificato.

Restituisce

Oggetto ListenOptions.

Si applica a

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

Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs
Origine:
ListenOptionsHttpsExtensions.cs

Configura Kestrel per l'uso di 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

Parametri

listenOptions
ListenOptions

Oggetto ListenOptions da configurare.

storeName
StoreName

Archivio certificati da cui caricare il certificato.

subject
String

Nome soggetto per il caricamento del certificato.

allowInvalid
Boolean

Indica se devono essere considerati certificati non validi, ad esempio certificati autofirmato.

location
StoreLocation

Percorso dell'archivio da cui caricare il certificato.

configureOptions
Action<HttpsConnectionAdapterOptions>

Azione per configurare .HttpsConnectionAdapterOptions

Restituisce

Oggetto ListenOptions.

Si applica a