Connecting Azur AD through proxy.

Hi All,

I need help in below case.

We are trying to connect Azure AD from server which don't have direct access to URLs. URL Access is enabled through proxy server.

Firewall is enabled between job server and proxy server where URLs are whitelisted.

https://login.windows.net and https://login.microsoftonline.com - For Azure authentication
https://graph.microsoft.com - For communicating with the graph api

Now when I try to make sync project I am getting below error.

[System.Exception] [HttpRequestException]: An error occurred while sending the request.
[WebException]: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
[AuthenticationException]: The remote certificate is invalid according to the validation procedure.
[AuthenticationException]: The remote certificate is invalid according to the validation procedure.

[System.Net.Http.HttpRequestException] An error occurred while sending the request.
[System.Net.WebException] The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
[System.Security.Authentication.AuthenticationException] The remote certificate is invalid according to the validation procedure.

Any help to resolev this issue is highly appriciated.

Thank you in advance.