使用演示站点的TLS问题

时间:2018-05-29 20:54:07

标签: c# docusignapi

从今天开始,我在发送包时收到以下错误消息:

Error calling Login: The request was aborted: Could not create SSL/TLS secure channel.

我的代码

StringBuilder authHeader = new StringBuilder(
                $"{{\"Username\":\"{userId}\", \"Password\":\"" +
                $"{password}\", \"IntegratorKey\":\"{IntegratorKey}\"");

            authHeader.Append(
                string.IsNullOrEmpty(senderEmail)
                    ? "}}"
                    : $",\"SendOnBehalfOf\": \"{senderEmail}\"}}");

            Configuration.Default.AddDefaultHeader(
                "X-DocuSign-Authentication",
                authHeader.ToString());

            AuthenticationApi api = new AuthenticationApi();
            return api.Login();

巧合的是,今天是在DocuSign演示网站上禁用TLS1.0的日子。 (sourceenter image description here 虽然我知道这一点,但我的应用程序使用.NET 4.7框架,默认情况下将使用TLS1.2。因此,它应该不是问题 当我使用找到here的DocuSign NuGet包时,我查看了源代码并使用了.NET 4.5(除非另有说明,否则使用TLS1.0)

我知道我可以实现this solution,但是,由于我的应用程序使用.NET 4.7,它不应该工作吗?

1 个答案:

答案 0 :(得分:1)

所有DocuSign API和终结点均需要

TLS 1.1或更高版本。 我们所有的库现在都支持TLS 1.2,包括DocuSign eSign C#Nuget软件包。 看到这里-https://support.docusign.com/en/articles/End-of-TLS-1-0-and-weak-cipher-support

相关问题