Error: The request was aborted - Could not create SSL/TLS secure channel

Archit Khanna July 9, 2019

I am working on a C# app that pulls in data from Jira of all the issues. The authentication seems to be working, however when I try to get the data, it throws the SSL/TLS error. SDK is updated to the latest version, same code was working yesterday but not today. 

Line of Code giving error: List<atlassian.Issue> results = (from i in this.JiraConnection.Issues.Queryable......

 

2 answers

0 votes
Duong_Nguyen April 13, 2020

Does anyone have any ideas on why JIRA is denied (The request was aborted: Could not create SSL/TLS secure channel.) a simple and industry standard request?

RestClient client = new RestClient();
RestRequest request = new RestRequest(Method.GET);
IRestResponse response = null;

client.BaseUrl = new Uri("https://**jira.atlassian.net");
client.Authenticator = new HttpBasicAuthenticator("**", "**");
request.Resource = "rest/api/2";
request.AddHeader("Accept", "application/json");
request.AddHeader("Content-Type", "application/json; charset=utf-8");
request.RequestFormat = DataFormat.Json;
response = client.Execute(request);

if (response.StatusCode == HttpStatusCode.OK)
{
// Success.
}
else
{
string text = response.ErrorMessage;
// text = The request was aborted: Could not create SSL/TLS secure channel.
}

0 votes
Duncan Olesen August 21, 2019

The change is probably a result of the change Atlassian implemented on 8th July to remove support for TLS v1.0 and v1.2. See https://confluence.atlassian.com/cloud/blog/2019/07/atlassian-cloud-changes-jul-1-to-jul-8-2019

You will will to change the security level. As an example see https://github.com/googleapis/google-api-dotnet-client/issues/911

Suggest an answer

Log in or Sign up to answer