I have the following test service:
https://197.253.5.218/OnlineIntegration/DBConnect.asmx
Opening it in any browser gives this warning
"There is a problem with this website’s security certificate"
However, I can ignore the warning and view the web service description.
Accessing same from code throws this exception:
Message=System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority '197.253.5.218'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
Please is there an option to bypass such faulty security certificate from code?
Thanks.