My company has developed a .NET web service and a client dll that uses this web service. The web service is hosted on our server via ssl, and the certificate is provided and signed by GoDaddy. We have several clients in a hosted environment who receive the following error message from a client dll when trying to access our web service.
System.Net.WebException The main connection was closed: Failed to establish trust for the SSL / TLS secure channel.
Our solution was for them to open IE on the server, which in itself is a problem for many hosted services and switching to the WSDL URL. IE then pops up a security warning dialog box. It states that the certificate date is valid and a valid name that matches the name of the page, but was issued by a company that you did not decide to trust. When they click "Yes" to continue, the client dll can then successfully connect to the web service and work as usual.
Does anyone have any idea why GoDaddy would not be on the list of valid publishers? On all servers on which we work, GoDaddy is valid. I assume that for security reasons, they removed the credentials for GoDaddy, but are not fully convinced that there is no other underlying problem.
Unfortunately, I was not very lucky to recreate it locally. If I go to Internet Settings and remove GoDaddy’s credentials and hit our service, ssl works fine. I return to the list of publishers, and GoDaddy gets there again. So, my second question is: how do you get rid of GoDaddy so that I can get an invalid certificate warning?
OK, the last question. Is there a way in the code that I can tell the web service to ignore invalid certificates. I saw some posts on how to do this with WCF software, but not using older web services.
source
share