KestrelServerOptionsHttpsExtensions.UseHttps Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) |
Configure o Kestrel para usar HTTPS. |
UseHttps(KestrelServerOptions, X509Certificate2) |
Configure o Kestrel para usar HTTPS. |
UseHttps(KestrelServerOptions, String) |
Configure o Kestrel para usar HTTPS. |
UseHttps(KestrelServerOptions, String, String) |
Configure o Kestrel para usar HTTPS. |
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)
Configure o Kestrel para usar 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
Parâmetros
- options
- KestrelServerOptions
O Microsoft.AspNetCore.Server.KestrelServerOptions a ser configurado.
- httpsOptions
- HttpsConnectionFilterOptions
Opções para configurar HTTPS.
Retornos
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Aplica-se a
UseHttps(KestrelServerOptions, X509Certificate2)
Configure o Kestrel para usar 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
Parâmetros
- options
- KestrelServerOptions
O Microsoft.AspNetCore.Server.KestrelServerOptions a ser configurado.
- serverCertificate
- X509Certificate2
O certificado X.509.
Retornos
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Aplica-se a
UseHttps(KestrelServerOptions, String)
Configure o Kestrel para usar 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
Parâmetros
- options
- KestrelServerOptions
O Microsoft.AspNetCore.Server.KestrelServerOptions a ser configurado.
- fileName
- String
O nome de um arquivo de certificado, em relação ao diretório que contém os arquivos de conteúdo do aplicativo.
Retornos
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Aplica-se a
UseHttps(KestrelServerOptions, String, String)
Configure o Kestrel para usar 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
Parâmetros
- options
- KestrelServerOptions
O Microsoft.AspNetCore.Server.KestrelServerOptions a ser configurado.
- fileName
- String
O nome de um arquivo de certificado, em relação ao diretório que contém os arquivos de conteúdo do aplicativo.
- password
- String
A senha necessária para acessar os dados do certificado X.509.
Retornos
The Microsoft.AspNetCore.Server.KestrelServerOptions.