Hello,
I am using the API to get an attachment but it is generating an error of "Request aborted: SSL/TLS not supported"
ServicePointManager.Expect100Continue = true;
//ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; //use TLS 1.2
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
var client = new RestClient("https://selfdeploy.atlassian.net/secure/attachment/27100/****");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Basic **********");
IRestResponse response = client.Execute(request);
Is there something that I am doing wrong ?
Can someone help please ?
Thanks in advance