I have a website that uses SSL certificate. The website sends a request to an external website and receives a response that it has to process. All this was working fine until we renewed the SSL certificate on the server. Now after we send the request to the external website, it does not send a response but throws the error
The underlying connection was closed: Could not establish trust relationship with remote server.at System.Net.HttpWebRequest.
Status() at System.Net.HttpWebRequest.
lt asyncResult) at System.Net.HttpWebRequest.
I made changes in the code by implementing System.Net.ICertificatePol
icy but it still does not work. I have attached my code. Please advise.