As I said in title, I have an ASP.NET Core 3.1 MVC app that is trying to request outer API (onetrust api). It is perfectly running on my localhost. But when my supervisor deployed it to server, we are not getting answer. I have no server access because I'm working as intern. I would be appreciate to any suggestion.
This is my code for the API request from ASP.NET Core MVC:
var client = new RestClient("myUrl");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Cookie", "thisIsCookieKey");
request.AlwaysMultipartFormData = true;
request.AddParameter("grant_type", "client_credentials");
request.AddParameter("client_id", this._clientId);
request.AddParameter("client_secret", this._clientSecret);
IRestResponse response = client.Execute(request);
return JsonConvert.DeserializeObject<Token>(response.Content);
The server log is for error is: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. error expection:System.Net.WebException: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception.
My supervisor said we've got ssl licesce. What else should I do to solve this error?
By the way I am using resharp client tool to request api. Thanks