Quantcast
Viewing all articles
Browse latest Browse all 8223

Authentication https fails

Hi,

When a customer changed from http to https, the service that I have built which uses crm service and metadata service and runs on the same server as the crm(on-premise) can no longer authenticate. I get exceptions like "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."

It works fine when I run the service from the outside.

I tried to add "ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true);" to see if it had anything to do with the certificate the customer uses but with no success. Instead of the exceptions above I get "System.Net.WebException >> The request failed with HTTP status 404: Not Found.".

Any ideas on how to fix this?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>