I am currently stuck with the issue related to custom workflow and it's badly impacting my project timeline. The custom workflow is calling external web service but always throws an error - "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."
However, the same code works fine for the Console application.
Environment: CRM 2011
Workflow deployed in None mode (NOT a sandbox)
.NET framework: 4.0
Any guide or input appreciated.
Please refer to the below blog posts...these can definitely help you troubleshot further...
Thanks, Pavan, I will check and let you know about the outcome.
The error message seems to suggest either the external site is not configured to run on HTTPS or certificate for SSL has expired or invalid. Your console app HTTP client might be ignoring cert validation error or if the site is only configured to use HTTP, the console app seems to be working with re-directed URL to work on HTTP.
Could you please make sure you can access the site with HTTPS in the browser with no certificate warning or errors?
If let's say HTTPS works fine and there are no cert validation errors, it could be that the CRM server is not able to do the SSL handshaking. You could try and run the console app code from the CRM server and see if this still works.
Business Applications communities