ListenOptionsHttpsExtensions.UseHttps Méthode

Définition

Surcharges

UseHttps(ListenOptions)

Configurez Kestrel pour utiliser HTTPS avec le certificat par défaut, le cas échéant. Cela se lève si aucun certificat par défaut n’est configuré.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, X509Certificate2)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, String)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, String, String)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

Configure Kestrel pour l’utilisation de HTTPS.

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

Configure Kestrel pour l’utilisation de HTTPS.

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

Configure Kestrel pour l’utilisation de HTTPS.

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

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(ListenOptions)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configurez Kestrel pour utiliser HTTPS avec le certificat par défaut, le cas échéant. Cela se lève si aucun certificat par défaut n’est configuré.

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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

httpsOptions
HttpsConnectionAdapterOptions

Options pour configurer HTTPS.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

callbackOptions
TlsHandshakeCallbackOptions

Options pour un rappel par connexion.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

configureOptions
Action<HttpsConnectionAdapterOptions>

Action permettant de configurer des options pour HTTPS.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, X509Certificate2)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

serverCertificate
X509Certificate2

Certificat X.509.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

fileName
String

Nom d’un fichier de certificat, relatif au répertoire qui contient les fichiers de contenu de l’application.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Rappel pour configurer les options HTTPS.

state
Object

État pour .serverOptionsSelectionCallback

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, StoreName, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

storeName
StoreName

Magasin de certificats à partir duquel charger le certificat.

subject
String

Nom d’objet du certificat à charger.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

serverCertificate
X509Certificate2

Certificat X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Action pour configurer .HttpsConnectionAdapterOptions

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, String, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

fileName
String

Nom d’un fichier de certificat, relatif au répertoire qui contient les fichiers de contenu de l’application.

password
String

Mot de passe requis pour accéder aux données du certificat X.509.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Configure Kestrel pour l’utilisation de HTTPS. Cela n’utilise pas de certificats par défaut ou d’autres valeurs par défaut spécifiées via config ou 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Rappel pour configurer les options HTTPS.

state
Object

État pour .serverOptionsSelectionCallback

handshakeTimeout
TimeSpan

Spécifie la durée maximale autorisée pour l’établissement d’une liaison TLS/SSL. Cela doit être positif et fini.

Retours

L’ListenOptionsopérateur

S’applique à

UseHttps(ListenOptions, StoreName, String, Boolean)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

storeName
StoreName

Magasin de certificats à partir duquel charger le certificat.

subject
String

Nom d’objet du certificat à charger.

allowInvalid
Boolean

Indique si les certificats non valides doivent être pris en compte, tels que les certificats auto-signés.

Retours

L’ListenOptionsopérateur

S’applique à

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

fileName
String

Nom d’un fichier de certificat, relatif au répertoire qui contient les fichiers de contenu de l’application.

password
String

Mot de passe requis pour accéder aux données du certificat X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Action pour configurer .HttpsConnectionAdapterOptions

Retours

L’ListenOptionsopérateur

S’applique à

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

storeName
StoreName

Magasin de certificats à partir duquel charger le certificat.

subject
String

Nom de l’objet du certificat à charger.

allowInvalid
Boolean

Indique si les certificats non valides doivent être pris en compte, tels que les certificats auto-signés.

location
StoreLocation

Emplacement du magasin à partir duquel charger le certificat.

Retours

L’ListenOptionsopérateur

S’applique à

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel pour l’utilisation de 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

Paramètres

listenOptions
ListenOptions

ListenOptions à configurer.

storeName
StoreName

Magasin de certificats à partir duquel charger le certificat.

subject
String

Nom de l’objet du certificat à charger.

allowInvalid
Boolean

Indique si les certificats non valides doivent être pris en compte, tels que les certificats auto-signés.

location
StoreLocation

Emplacement du magasin à partir duquel charger le certificat.

configureOptions
Action<HttpsConnectionAdapterOptions>

Action pour configurer .HttpsConnectionAdapterOptions

Retours

L’ListenOptionsopérateur

S’applique à