WCF Mono - BasicHttpBinding with SSL

Posted by TheNextman on Stack Overflow See other posts from Stack Overflow or by TheNextman
Published on 2010-04-16T21:36:16Z Indexed on 2010/04/16 21:43 UTC
Read the original article Hit count: 662

Filed under:
|
|
|

I'm trying to port an existing WCF client application to run on Linux under Mono. Right now I'm testing everything out, figuring out what works on Mono and what doesn't.

The client makes a super simple call over basicHttpBinding. It works great, until I enable SSL (that is, specify BasicHttpSecurityMode.Transport in the binding).

  • Running on .NET in Windows, it works great
  • Running on Mono on Ubuntu 9.10 / Mono 2.6 I get the following error:

Exception in async operation: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a

I've read the Mono security FAQ here: http://www.mono-project.com/FAQ:_Security; however the SSL certificate on the server is from a root CA (a purchased certificate) - issued by Equifax Secure Certificate Authority. I ran the TlsTest tool on the Ubuntu install against the .svc URL and there are no problems/errors. Also I can hit the service fine in Firefox (no security warnings).

What am I missing?

Thanks in advance, Richard

© Stack Overflow or respective owner

Related posts about wcf

Related posts about mono