Error Message: The remote certificate is invalid according to the validation procedure.

Error Message: The remote certificate is invalid according to the validation procedure.

Action:
While trying to setup a secure (HTTPS) connection, the following error message is returned.
Error Message:
'Validating connectivity via endpoint '' failed. Details:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure. (System)'
Solution:

According to your local machine, the server certificate on the remote server is invalid.  You have two options:

  1. Fix the certificate on the remote server.
  2. Make your local machine explicitly trust the problematic server certificate.