简体   繁体   English

如何修复以使用TLS 1.2

[英]How to fix to use TLS 1.2

I am using Windows 10, Visual Studio 2017, .Net 4.7. 我正在使用Windows 10,Visual Studio 2017,.Net 4.7。 And using DocuSign SOAP APIs to send an envelope. 并使用DocuSign SOAP API发送信封。 My code is using .NET 4.7 - checked in web.config and confirmed in project properties > Application tab. 我的代码使用.NET 4.7-在web.config中检查并在项目属性>“应用程序”选项卡中确认。

And yet, I keep getting the error from DocuSign that I need to use TLS 1.2 and that I am using TLS 1. 但是,我不断从DocuSign收到错误消息,我需要使用TLS 1.2,而我正在使用TLS 1。

What else can I do to fix this? 我还能做些什么来解决这个问题?

You can always force the TLS version yourself with: 您可以随时通过以下方式强制使用TLS版本:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

However, this shouldn't be necessary under .NET Framework 4.7. 但是,在.NET Framework 4.7下这不是必需的。 TLS 1.2 is the default. TLS 1.2是默认设置。

See also this blog post from Docusign . 另请参阅Docusign的此博客文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM