ListenOptionsHttpsExtensions.UseHttps Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseHttps(ListenOptions) |
Konfigurasikan Kestrel untuk menggunakan HTTPS dengan sertifikat default jika tersedia. Ini akan melempar jika tidak ada sertifikat default yang dikonfigurasi. |
UseHttps(ListenOptions, HttpsConnectionAdapterOptions) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>). |
UseHttps(ListenOptions, TlsHandshakeCallbackOptions) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>). |
UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, X509Certificate2) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, String) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>). |
UseHttps(ListenOptions, StoreName, String) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, String, String) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions>). |
UseHttps(ListenOptions, StoreName, String, Boolean) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>) |
Konfigurasikan Kestrel untuk menggunakan HTTPS. |
UseHttps(ListenOptions)
Konfigurasikan Kestrel untuk menggunakan HTTPS dengan sertifikat default jika tersedia. Ini akan melempar jika tidak ada sertifikat default yang dikonfigurasi.
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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, HttpsConnectionAdapterOptions)
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- httpsOptions
- HttpsConnectionAdapterOptions
Opsi untuk mengonfigurasi HTTPS.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, TlsHandshakeCallbackOptions)
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- callbackOptions
- TlsHandshakeCallbackOptions
Opsi untuk panggilan balik per koneksi.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, Action<HttpsConnectionAdapterOptions>)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- configureOptions
- Action<HttpsConnectionAdapterOptions>
Tindakan untuk mengonfigurasi opsi untuk HTTPS.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, X509Certificate2)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- serverCertificate
- X509Certificate2
Sertifikat X.509.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, String)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- fileName
- String
Nama file sertifikat, relatif terhadap direktori yang berisi file konten aplikasi.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object)
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- serverOptionsSelectionCallback
- ServerOptionsSelectionCallback
Panggilan balik untuk mengonfigurasi opsi HTTPS.
- state
- Object
Status untuk serverOptionsSelectionCallback
.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, StoreName, String)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- storeName
- StoreName
Penyimpanan sertifikat untuk memuat sertifikat.
- subject
- String
Nama subjek untuk sertifikat yang akan dimuat.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, X509Certificate2, Action<HttpsConnectionAdapterOptions>)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- serverCertificate
- X509Certificate2
Sertifikat X.509.
- configureOptions
- Action<HttpsConnectionAdapterOptions>
Tindakan untuk mengonfigurasi HttpsConnectionAdapterOptions.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, String, String)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- fileName
- String
Nama file sertifikat, relatif terhadap direktori yang berisi file konten aplikasi.
- password
- String
Kata sandi yang diperlukan untuk mengakses data sertifikat X.509.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, ServerOptionsSelectionCallback, Object, TimeSpan)
Konfigurasikan Kestrel untuk menggunakan HTTPS. Ini tidak menggunakan sertifikat default atau default lain yang ditentukan melalui konfigurasi atau 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- serverOptionsSelectionCallback
- ServerOptionsSelectionCallback
Panggilan balik untuk mengonfigurasi opsi HTTPS.
- state
- Object
Status untuk serverOptionsSelectionCallback
.
- handshakeTimeout
- TimeSpan
Menentukan jumlah waktu maksimum yang diizinkan untuk jabat tangan TLS/SSL. Ini harus positif dan terbatas.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, StoreName, String, Boolean)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- storeName
- StoreName
Penyimpanan sertifikat untuk memuat sertifikat.
- subject
- String
Nama subjek untuk sertifikat yang akan dimuat.
- allowInvalid
- Boolean
Menunjukkan apakah sertifikat yang tidak valid harus dipertimbangkan, seperti sertifikat yang ditandatangani sendiri.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, String, String, Action<HttpsConnectionAdapterOptions>)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- fileName
- String
Nama file sertifikat, relatif terhadap direktori yang berisi file konten aplikasi.
- password
- String
Kata sandi yang diperlukan untuk mengakses data sertifikat X.509.
- configureOptions
- Action<HttpsConnectionAdapterOptions>
Tindakan untuk mengonfigurasi HttpsConnectionAdapterOptions.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- storeName
- StoreName
Penyimpanan sertifikat untuk memuat sertifikat.
- subject
- String
Nama subjek untuk sertifikat yang akan dimuat.
- allowInvalid
- Boolean
Menunjukkan apakah sertifikat yang tidak valid harus dipertimbangkan, seperti sertifikat yang ditandatangani sendiri.
- location
- StoreLocation
Lokasi penyimpanan untuk memuat sertifikat.
Mengembalikan
Berlaku untuk
UseHttps(ListenOptions, StoreName, String, Boolean, StoreLocation, Action<HttpsConnectionAdapterOptions>)
Konfigurasikan Kestrel untuk menggunakan 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
Parameter
- listenOptions
- ListenOptions
untuk ListenOptions mengonfigurasi.
- storeName
- StoreName
Penyimpanan sertifikat untuk memuat sertifikat.
- subject
- String
Nama subjek untuk sertifikat yang akan dimuat.
- allowInvalid
- Boolean
Menunjukkan apakah sertifikat yang tidak valid harus dipertimbangkan, seperti sertifikat yang ditandatangani sendiri.
- location
- StoreLocation
Lokasi penyimpanan untuk memuat sertifikat.
- configureOptions
- Action<HttpsConnectionAdapterOptions>
Tindakan untuk mengonfigurasi HttpsConnectionAdapterOptions.