I have a windows service which periodically connects remote web service method and passes the required parameters. This system was working perfect.
But for the live system, we needed to install and use client SSL certificate to call that remote web service method. Now, the windows servce returns the error below.
identity check failed for outgoing message. The expected DNS identity of the remote endpoint was 'thet-ws.ema.europa.eu' but the remote endpoint provided DNS claim 'TURSIGN'. If this is a legitimate remote endpoint, you can fix the problem by explicitly specifying DNS identity 'TURSIGN' as the Identity property of EndpointAddress when creating channel proxy.
If I put TURSIGN as the identity like suggested, I receive the error;
Could not establish secure channel for SSL/TLS with authority 'thet-ws.ema.europa.eu:444'.
How can I resolve this problem?