TlsVersions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A common place to specify TLS information for the project, when the code must be explicit or a user requires an override.
public class TlsVersions
type TlsVersions = class
Public Class TlsVersions
- Inheritance
-
TlsVersions
Remarks
As newer TLS versions come out, we should simply update them here and have all code that needs to know reference this class so they all get updated and we don't risk missing a line.
Fields
Instance |
A static instance of this class to be used by the Azure IoT .NET SDKs when opening connections |
Properties
CertificateRevocationCheck |
To enable certificate revocation check. Default to be false. |
MinimumTlsVersions |
The acceptable versions of TLS to use when the SDK must be explicit. |
Preferred |
The version of TLS to use by default. |
Methods
SetLegacyAcceptableVersions() |
Sets the acceptable versions of TLS over HTTPS or websocket for .NET framework 4.5.1, as it does not offer a "SystemDefault" option. No-op for other .NET versions. Sets CheckCertificateRevocationList property to value of CertificateRevocationCheck for .NET framework 4.5.1 |
SetMinimumTlsVersions(SslProtocols) |
Sets the minimum acceptable versions of TLS. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應