代码之家  ›  专栏  ›  技术社区  ›  user3150378

如何修复以使用TLS 1.2

  •  -1
  • user3150378  · 技术社区  · 7 年前

    我使用的是Windows 10、Visual Studio 2017、.Net 4.7。 并使用docusignsoapis发送信封。我的代码正在使用.NET 4.7-在web.config中检查并在项目属性中确认>应用程序选项卡。

    然而,我不断从DocuSign得到错误,我需要使用tls1.2,并且我正在使用tls1。

    我还能做些什么来解决这个问题?

    1 回复  |  直到 7 年前
        1
  •  2
  •   Matt Johnson-Pint    7 年前

    您始终可以使用以下命令强制TLS版本:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    

    this blog post from Docusign