0

When I run this it works and gives a valid reponse

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

but when I try to run this I get an error.

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

1 Answers1

1

here is the answer The request was aborted: Could not create SSL/TLS secure channel

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

marius
  • 319
  • 1
  • 9