KestrelServerOptionsHttpsExtensions.UseHttps Méthode

Définition

Surcharges

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(KestrelServerOptions, String)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(KestrelServerOptions, String, String)

Configure Kestrel pour l’utilisation de HTTPS.

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Configure Kestrel pour l’utilisation de HTTPS.

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

Paramètres

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions à configurer.

httpsOptions
HttpsConnectionFilterOptions

Options pour configurer HTTPS.

Retours

The Microsoft.AspNetCore.Server.KestrelServerOptions.

S’applique à

UseHttps(KestrelServerOptions, X509Certificate2)

Configure Kestrel pour l’utilisation de HTTPS.

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

Paramètres

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions à configurer.

serverCertificate
X509Certificate2

Certificat X.509.

Retours

The Microsoft.AspNetCore.Server.KestrelServerOptions.

S’applique à

UseHttps(KestrelServerOptions, String)

Configure Kestrel pour l’utilisation de HTTPS.

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

Paramètres

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions à configurer.

fileName
String

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

Retours

The Microsoft.AspNetCore.Server.KestrelServerOptions.

S’applique à

UseHttps(KestrelServerOptions, String, String)

Configure Kestrel pour l’utilisation de HTTPS.

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

Paramètres

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions à 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

The Microsoft.AspNetCore.Server.KestrelServerOptions.

S’applique à