簡體   English   中英

EWS和TLS 1.2-自動連接出現問題

[英]EWS and TLS 1.2 - having issues connecting automatically

我們的一位客戶已升級到Tls 1.2。

但是,除非我添加以下代碼,否則ExchangeService客戶端無法連接到它:

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

這可能不適用於我們的所有客戶。 有沒有辦法讓它自動檢測要使用哪個?

您可以通過執行以下操作來指定多個受支持的協議:

System.Net.ServicePointManager.SecurityProtocol =
    SecurityProtocolType.Ssl3 |
    SecurityProtocolType.Tls |
    SecurityProtocolType.Tls11 |
    SecurityProtocolType.Tls12;

使用此代碼示例,您允許所有安全協議(.NET支持)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM