Compartir a través de


ListenOptionsHttpsExtensions.UseHttps Método

Definición

Sobrecargas

UseHttps(ListenOptions)

Configure Kestrel para que use HTTPS con el certificado predeterminado si está disponible. Esto producirá si no hay ningún certificado predeterminado configurado.

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, X509Certificate2)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, String)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, String, String)

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de config o ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>).

UseHttps(ListenOptions, StoreName, String, Boolean)

Configure Kestrel para que use HTTPS.

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

Configure Kestrel para que use HTTPS.

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

Configure Kestrel para que use HTTPS.

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

Configure Kestrel para que use HTTPS.

UseHttps(ListenOptions)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use HTTPS con el certificado predeterminado si está disponible. Esto producirá si no hay ningún certificado predeterminado 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

El objeto ListenOptions que se va a configurar.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, HttpsConnectionAdapterOptions)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de 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

Parámetros

listenOptions
ListenOptions

El objeto ListenOptions que se va a configurar.

httpsOptions
HttpsConnectionAdapterOptions

Opciones para configurar HTTPS.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, TlsHandshakeCallbackOptions)

Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de 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

Parámetros

listenOptions
ListenOptions

El objeto ListenOptions que se va a configurar.

callbackOptions
TlsHandshakeCallbackOptions

Opciones para una devolución de llamada por conexión.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

configureOptions
Action<HttpsConnectionAdapterOptions>

Acción para configurar opciones para HTTPS.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, X509Certificate2)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

serverCertificate
X509Certificate2

Certificado X.509.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

fileName
String

Nombre de un archivo de certificado, en relación con el directorio que contiene los archivos de contenido de la aplicación.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)

Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de 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

Parámetros

listenOptions
ListenOptions

El objeto ListenOptions que se va a configurar.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Devolución de llamada para configurar las opciones HTTPS.

state
Object

Estado de .serverOptionsSelectionCallback

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, StoreName, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

storeName
StoreName

Almacén de certificados desde el que se va a cargar el certificado.

subject
String

Nombre del firmante del certificado que se va a cargar.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

serverCertificate
X509Certificate2

Certificado X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Acción para configurar .HttpsConnectionAdapterOptions

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, String, String)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

fileName
String

Nombre de un archivo de certificado, en relación con el directorio que contiene los archivos de contenido de la aplicación.

password
String

Contraseña requerida para obtener acceso a los datos del certificado X.509.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)

Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use HTTPS. Esto no usa certificados predeterminados u otros valores predeterminados especificados a través de 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

Parámetros

listenOptions
ListenOptions

El objeto ListenOptions que se va a configurar.

serverOptionsSelectionCallback
ServerOptionsSelectionCallback

Devolución de llamada para configurar las opciones HTTPS.

state
Object

Estado de .serverOptionsSelectionCallback

handshakeTimeout
TimeSpan

Especifica la cantidad máxima de tiempo permitido para el protocolo de enlace TLS/SSL. Debe ser positivo y finito.

Devoluciones

ListenOptions.

Se aplica a

UseHttps(ListenOptions, StoreName, String, Boolean)

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

storeName
StoreName

Almacén de certificados desde el que se va a cargar el certificado.

subject
String

Nombre del firmante del certificado que se va a cargar.

allowInvalid
Boolean

Indica si se deben tener en cuenta certificados no válidos, como certificados autofirmados.

Devoluciones

ListenOptions.

Se aplica a

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

fileName
String

Nombre de un archivo de certificado, relativo al directorio que contiene los archivos de contenido de la aplicación.

password
String

Contraseña requerida para obtener acceso a los datos del certificado X.509.

configureOptions
Action<HttpsConnectionAdapterOptions>

Una acción para configurar .HttpsConnectionAdapterOptions

Devoluciones

ListenOptions.

Se aplica a

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

storeName
StoreName

Almacén de certificados desde el que se va a cargar el certificado.

subject
String

Nombre del firmante del certificado que se va a cargar.

allowInvalid
Boolean

Indica si se deben tener en cuenta certificados no válidos, como certificados autofirmados.

location
StoreLocation

Ubicación del almacén desde la que se va a cargar el certificado.

Devoluciones

ListenOptions.

Se aplica a

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

Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs
Source:
ListenOptionsHttpsExtensions.cs

Configure Kestrel para que use 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

El objeto ListenOptions que se va a configurar.

storeName
StoreName

Almacén de certificados desde el que se va a cargar el certificado.

subject
String

Nombre del firmante del certificado que se va a cargar.

allowInvalid
Boolean

Indica si se deben tener en cuenta certificados no válidos, como certificados autofirmados.

location
StoreLocation

Ubicación del almacén desde la que se va a cargar el certificado.

configureOptions
Action<HttpsConnectionAdapterOptions>

Una acción para configurar .HttpsConnectionAdapterOptions

Devoluciones

ListenOptions.

Se aplica a