C# JIRA 错误消息:请求被中止:无法创建 SSL/TLS 安全通道

C# JIRA Error Message: The request was aborted: Could not create SSL/TLS secure channel

当我 运行 它起作用并给出有效响应时

private readonly Lazy<Jira> jiraClient = new Lazy<Jira>(() => Jira.CreateRestClient("https://jira...", "name", "pass"));

但是当我尝试 运行 时,出现错误。

Issue issue = await this.jiraClient.Value.Issues.GetIssueAsync(jiraId);
Error Message: The request was aborted: Could not create SSL/TLS secure channel

答案在这里 The request was aborted: Could not create SSL/TLS secure channel

ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;