I am currently writing an iphone application that will use WCF services over a secure connection (SSL / https). I managed to use this service, checking locally via http.
Now we want to make sure that the service is safe, so we set up a UAT server with a properly signed certificate to run our tests.
We use custom bindings in conjunction with the TransportWithMessageCredentials security mode, which requires a username / password in the ClientCredentials property.
Generated Proxy with SISvcUtil.exe
When I try to call this secure service from the iPhone, I get a pretty nice general error:
Exception in async operation: System.Net.WebException: There was an error on processing web request: Status code 500(internal server error) ( Here is the pastor for the complete exception ).
I tried to implicitly accept the certificate using: ServicePointManager.ServerCertificateValidationCallBack = (sender, cert, chain, ssl) => true; but it just returns the same 500 error.
The same code works fine on a Windows machine, but not on an iphone. Has anyone else encountered this problem and / or was aware of a solution to it?
source share