We have an internal environment where the TLS/SSL certificate on tenants is not playing well with some requests. This is not a huge issue for clients who can add a one time trust for the certificate, but it causes some issues with the keepalive.aspx agent trying to poll the tenants root URL.
So my question is if anybody knows of a way to configure the keepalive agent in a way, that it can try to overcome certificate warnings / validations?
Here's an excerpt from our log file:
Exception in UrlAgent (url: /sitecore/service/keepalive.aspx)
Exception: System.Net.WebException
Message: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Source: System
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at Sitecore.Web.WebUtil.ExecuteWebPage(String url, NameValueCollection headers)
at Sitecore.Tasks.UrlAgent.Run()
Nested Exception
Exception: System.Security.Authentication.AuthenticationException
Message: The remote certificate is invalid according to the validation procedure.
And yes, I do know that the proper way would be to fix the certificate :) I am actually more interested in a quick fix as due the affected environment is basically end of life and the next step would be a general overhaul anyway.