Outlook 插件使用的 TLS 版本
TLS version used by Outlook add in
不是 .NET 和 Outlook 添加开发方面的专家。但是必须在现有的 outlook 中查找问题添加:)。
我们的 outlook 插件通过 HTTPS 与基于 Java 的服务器进行通信。我的 outlook 插件是 4.5.1 .NET 版本。
目前我们的服务器支持 TLS 1.0、1.1 和 1.2。
但是我在我们的 outlook 添加中看到了这段代码
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
据我了解,此代码可确保根据服务器支持的 TLS 版本进行通信
https://docs.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.securityprotocol?view=netcore-3.1
如果客户端和服务器都支持 1.2,我不知道在我的情况下通信是否应该通过最高安全平台进行。
但我仍然看到通信发生在 < 1.2 以内。不知道为什么会这样。根据文档,我了解到 OS 设置不会影响低于 4.7 的 .NET 版本的 TLS 版本。
而且上面的代码是否正确并确保通信应该通过最高安全版本进行。 ?
此致,
索拉夫
My outlook add in is on 4.5.1 .NET version.
.NET 4.0/4.5 中的默认 System.Net.ServicePointManager.SecurityProtocol
是 SecurityProtocolType.Tls|SecurityProtocolType.Ssl3
。但是,如果您在启动时使用以下代码,那么一切都会顺利进行:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
But still i see the communication is happening over less than < 1.2. Not sure why this is happening.
您需要检查服务器端的设置。我建议使用 Fiddler 查看底层发生了什么,以及为什么选择较低的 TLS 版本。
不是 .NET 和 Outlook 添加开发方面的专家。但是必须在现有的 outlook 中查找问题添加:)。
我们的 outlook 插件通过 HTTPS 与基于 Java 的服务器进行通信。我的 outlook 插件是 4.5.1 .NET 版本。
目前我们的服务器支持 TLS 1.0、1.1 和 1.2。
但是我在我们的 outlook 添加中看到了这段代码
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
据我了解,此代码可确保根据服务器支持的 TLS 版本进行通信 https://docs.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.securityprotocol?view=netcore-3.1
如果客户端和服务器都支持 1.2,我不知道在我的情况下通信是否应该通过最高安全平台进行。
但我仍然看到通信发生在 < 1.2 以内。不知道为什么会这样。根据文档,我了解到 OS 设置不会影响低于 4.7 的 .NET 版本的 TLS 版本。
而且上面的代码是否正确并确保通信应该通过最高安全版本进行。 ?
此致,
索拉夫
My outlook add in is on 4.5.1 .NET version.
.NET 4.0/4.5 中的默认 System.Net.ServicePointManager.SecurityProtocol
是 SecurityProtocolType.Tls|SecurityProtocolType.Ssl3
。但是,如果您在启动时使用以下代码,那么一切都会顺利进行:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
But still i see the communication is happening over less than < 1.2. Not sure why this is happening.
您需要检查服务器端的设置。我建议使用 Fiddler 查看底层发生了什么,以及为什么选择较低的 TLS 版本。