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......
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.
}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.