Hi
Hosted a WCF web Service as window service in remote server with SSL certificate added but when am trying to consume in my client application, getting a Exception of "Could not establish trust relationship for the SSL/TLS secure channel with authority 'SMKETECH'.' The remote certificate is invalid according to the validation procedure. could you please give some idea how to consume in client with SSL Certificate, Do i need to install the same SSL Certificate in Client Side also or how to solve this issue.
thanks
Tuhin PaulPosted Mar 21, 2023, 5:31 PM
Anandu G NathPosted Dec 21, 2023, 4:36 AM
The error you're encountering ("Could not establish trust relationship for the SSL/TLS secure channel") indicates that the client application doesn't trust the SSL certificate presented by the server when establishing the secure connection. To resolve this issue, here are steps you can take:
Install SSL Certificate on the Client Side
Export the SSL Certificate from the Server:
Install the SSL Certificate on the Client Machine:
certmgr.msc) or programmatically.DrtPosted Mar 22, 2023, 2:07 AM
Hi Tuhin Paul,
Thanks !! Installed the Root CA Certificate in my Client machine , problem is solved.
Tuhin PaulPosted Mar 21, 2023, 5:30 PM
To ignore SSL errors in .NET, you can add the following code to your client application:
This will cause the client to accept any SSL certificate presented by the service, regardless of its validity.
Tuhin PaulPosted Mar 21, 2023, 5:29 PM
The error message you're seeing indicates that the SSL certificate presented by the WCF service is not trusted by the client application. This could happen if the certificate is not issued by a trusted root CA or if the hostname on the certificate does not match the hostname used to access the service.