Hi,
I'm trying to connect to my project on JSD Cloud
Since the vanilla version of JSD doesn't provide the import functionality we are looking for so I'm giving C# a go to see if it help us.
I'm getting error "The request was aborted: Could not create SSL/TLS secure channel."
My Goal is to Authenticate and Get all the queue items....
Here's my code
string jsonResponse = null;
urlJira = "https://projectName.net/rest/servicedeskapi/servicedesk/1000001";
WebRequest requestIssueList = WebRequest.Create(urlJira) as HttpWebRequest;
HttpWebResponse responseJiraList = null;
requestIssueList.Method = "GET";
requestIssueList.ContentType = "application/json";
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls
| SecurityProtocolType.Ssl3;
requestIssueList.Headers.Add("Authorization", "Basic " + GetEncodedCredentials(strUserName, apiToken));
// byte[] data = Encoding.UTF8.GetBytes(JsonString);
responseJiraList = (HttpWebResponse)requestIssueList.GetResponse();
using (Stream stream = responseJiraList.GetResponseStream())
{
StreamReader str = new StreamReader(stream);
jsonResponse = str.ReadToEnd();
str.Close();
}