I am trying to post an XML file to an URL that was given to me:
https://54.xx.xx.xxx/mycompany/path
using (WebClient client = new WebClient())
{
client.UploadFile(url, filePath);
}
However, I get this error:
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
When I open up the URL, it returns a page saying "Running" however, I see the lock with an X on it, with error: "The Identity of this website has not been verified".
Could this be the problem? I need some light please.