I have a WCF application hosted in IIS that work as an intermediate for two other different SOAP web services A & B.
Calling A service operations from my application is always OK. Calling B service operations from my application is problematic :
- Using simple http endpoint URL everything work as expected.
- Moving to https endpoint works well for 1-2 days but at some time I get "Could not establish secure channel for SSL/TLS" error.
I have noticed that recycling the pool in IIS fixes the problem until the next time.
My application is hosted in two servers and served through a load balancer. When I face the above problem in server 1 it is not always the case with the 2nd server as well.
- Certificates seems to be OK. No errors. After all if there was an error with certificates it would not work at all.
- The same if there were different SSL/TLS protocols. My services serves only Tls 1.2 and service B that I call supports Tls 1.0
- Is there any possibility a restart in the service A that I call would cause that problem?
What could cause that random error? Any ideas?