Answered by:
ERROR: Could not establish trust relationship for the SSL/TLS secure channel (CRM 2013)

Question
-
Hi,
I'm using CRM 2013. After changing the connection from HTTP to HTTPS, I've started to receive the following error:
The application terminated with an error.
Metadata contains a reference that cannot be resolved:
'https://MyServer/MyOrganization/XRMServices/2011/Organization.svc?wsdl'.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.Has anybody encountered this problem before?
Thanks for any hints,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com- Edited by ata6502 Tuesday, July 22, 2014 3:51 PM
Tuesday, July 22, 2014 3:44 PM
Answers
-
May this be because of self-signed certificate?
If so, please try answers from this question: http://stackoverflow.com/questions/526711/using-a-self-signed-certificate-with-nets-httpwebrequest-response
- Marked as answer by ata6502 Tuesday, July 22, 2014 7:15 PM
Tuesday, July 22, 2014 6:57 PM
All replies
-
Tuesday, July 22, 2014 3:58 PM
-
Thanks Faisal for the link but it does not seem this is the problem. The URL (https://MyServer/MyOrganization/XRMServices/2011/Organization.svc?wsdl) works perfectly fine in Internet Explorer but it fails when I try to use it with Visual Studio CRM Explorer, CrmSvcUtil, or run any SDK samples.
Do you have any other suggestions?
Thanks
Leszek
BTW, I have enabled tracing but it did not return any details about the error.
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com- Edited by ata6502 Tuesday, July 22, 2014 5:38 PM
Tuesday, July 22, 2014 5:38 PM -
May this be because of self-signed certificate?
If so, please try answers from this question: http://stackoverflow.com/questions/526711/using-a-self-signed-certificate-with-nets-httpwebrequest-response
- Marked as answer by ata6502 Tuesday, July 22, 2014 7:15 PM
Tuesday, July 22, 2014 6:57 PM -
Thanks Alex. It was a problem with a self-signed certificate indeed. Now it does not throw the "Could not establish trust relationship for the SSL/TLS secure channel" exception (although it throws an "Access denied" error. I will send another post about it).
Thanks,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.comTuesday, July 22, 2014 7:15 PM