Compartilhar via


ListenOptionsHttpsExtensions.UseHttps Método

Definição

Sobrecargas

UseHttps(ListenOptions)

Configure o Kestrel para usar HTTPS com o certificado padrão, se disponível. Isso será gerado se nenhum certificado padrão estiver configurado.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, X509Certificate2)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, String)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, String, String)

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração ou ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

Configure o Kestrel para usar HTTPS.

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

Configure o Kestrel para usar HTTPS.

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

Configure o Kestrel para usar HTTPS.

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

Configure o Kestrel para usar HTTPS.

UseHttps(ListenOptions)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar HTTPS com o certificado padrão, se disponível. Isso será gerado se nenhum certificado padrão estiver configurado.

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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

httpsOptions
HttpsConnectionAdapterOptions

Opções para configurar HTTPS.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

callbackOptions
TlsHandshakeCallbackOptions

Opções para um retorno de chamada por conexão.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

configureOptions
Action<HttpsConnectionAdapterOptions>

Uma ação para configurar opções para HTTPS.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, X509Certificate2)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

serverCertificate
X509Certificate2

O certificado X.509.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, String)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions 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

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Retorno de chamada para configurar opções HTTPS.

state
Object

Estado para o serverOptionsSelectionCallback.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, StoreName, String)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

storeName
StoreName

O repositório de certificados do qual carregar o certificado.

subject
String

O nome da entidade para o certificado a ser carregado.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

serverCertificate
X509Certificate2

O certificado X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Uma Ação para configurar o HttpsConnectionAdapterOptions.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, String, String)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions 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

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar HTTPS. Isso não usa certificados padrão ou outros padrões especificados por meio de configuração 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Retorno de chamada para configurar opções HTTPS.

state
Object

Estado para o serverOptionsSelectionCallback.

handshakeTimeout
TimeSpan

Especifica a quantidade máxima de tempo permitida para o handshake TLS/SSL. Isso deve ser positivo e finito.

Retornos

O ListenOptions.

Aplica-se a

UseHttps(ListenOptions, StoreName, String, Boolean)

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

storeName
StoreName

O repositório de certificados do qual carregar o certificado.

subject
String

O nome da entidade para o certificado a ser carregado.

allowInvalid
Boolean

Indica se certificados inválidos devem ser considerados, como certificados autoassinados.

Retornos

O ListenOptions.

Aplica-se a

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

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

fileName
String

O nome de um arquivo de certificado, relativo 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.

configureOptions
Action<HttpsConnectionAdapterOptions>

Uma Ação para configurar o HttpsConnectionAdapterOptions.

Retornos

O ListenOptions.

Aplica-se a

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

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

storeName
StoreName

O repositório de certificados do qual carregar o certificado.

subject
String

O nome da entidade para o certificado carregar.

allowInvalid
Boolean

Indica se certificados inválidos devem ser considerados, como certificados autoassinados.

location
StoreLocation

O local do repositório do qual carregar o certificado.

Retornos

O ListenOptions.

Aplica-se a

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

Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs
Origem:
ListenOptionsHttpsExtensions.cs

Configure o Kestrel para usar 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

Parâmetros

listenOptions
ListenOptions

O ListenOptions a ser configurado.

storeName
StoreName

O repositório de certificados do qual carregar o certificado.

subject
String

O nome da entidade para o certificado carregar.

allowInvalid
Boolean

Indica se certificados inválidos devem ser considerados, como certificados autoassinados.

location
StoreLocation

O local do repositório do qual carregar o certificado.

configureOptions
Action<HttpsConnectionAdapterOptions>

Uma Ação para configurar o HttpsConnectionAdapterOptions.

Retornos

O ListenOptions.

Aplica-se a