You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the exception "The remote certificate is invalid according to the validation procedure." which is thrown from MetadataLoader.cs:93.
Our Azure App Service is trying to access a site over HTTPS which does not use the standard root certs, so when the WebClient.Open call is made, it tries to validate the server's certificates and then throws an exception.
Unfortunately there is no way to add root certificates to Azure App Services, you can only add certs to CurrentUser/My.
In .NET framework, you can implement your own custom server certificate method by adding a delegate to ServicePointManager.ServerCertificateValidationCallback, which globally handles all client requests.
I'm getting the exception "The remote certificate is invalid according to the validation procedure." which is thrown from MetadataLoader.cs:93.
Our Azure App Service is trying to access a site over HTTPS which does not use the standard root certs, so when the WebClient.Open call is made, it tries to validate the server's certificates and then throws an exception.
Unfortunately there is no way to add root certificates to Azure App Services, you can only add certs to CurrentUser/My.
In .NET framework, you can implement your own custom server certificate method by adding a delegate to ServicePointManager.ServerCertificateValidationCallback, which globally handles all client requests.
But in dotnet core, you can't do this globally, you have to supply a delegate to HttpClientHandler.ServerCertificateCustomValidationCallback.
So this request is for:
The text was updated successfully, but these errors were encountered: