Last post Nov 14, 2017 07:23 AM by Billy Liu
Nov 13, 2017 10:37 AM|amitk.singh|LINK
I am implementing HTTPs web service (https://xxx.xxx.xxx.xx/CMGetStatus/RecordStatusService). When I am accessing web method of SOAP service by passing parameters service returning error message "Could not establish trust relationship for the SSL/TLS
secure channel with authority 'XXX.XX.XX.XX'." (XX is server IP).
Can anyone guide me to fix the issue.
Nov 13, 2017 10:58 AM|PatriceSc|LINK
More likely the certificate was created to match a server name rather than an IP address. You really can't just use the server name ? What if using a browser to try to reach this location ?
If really needed you could try something such as
https://docs.microsoft.com/en-us/dotnet/framework/wcf/extending/how-to-create-a-service-that-employs-a-custom-certificate-validator to implement a custom validator that will ignore this name discrepancy.
My preference would be to just use the server name.
Nov 14, 2017 07:23 AM|Billy Liu|LINK
"Could not establish trust relationship for the SSL/TLS secure channel with authority 'XXX.XX.XX.XX'."
This usually caused by an untrusted certificate. Please check your certificate. You could place the generated certificate in the "Trusted Root Certificate Authorities" folder, this means the local computer will now trust that certificate.
You could refer to the link below for more information: