views:

149

answers:

0

I have a wcf service hosted on a remote machine (IIS 7.0, Windows Server 2008) and an asp .net web application hosted on my local machine (IIS 7.0, Vista Ultimate 32bit).The wcf service uses a certificate authentication based on a self-signed certificate for development.

When I try to connect to the service with my client asp .net application I get "The underlying connection was closed: Could not establish secure channel for SSL/TLS." error.

When I run the client app on the Visual Studio development server, the app consumes the service without any problem. I wrote a simple console application to test the service and it also connects without a problem. Only the asp .net application hosted on my local IIS gets the error.

I have checked that the client certificate sent in all three cases is the same and there is no problem finding it in the certificate store. I think that the problem is the fact, that the certificate used for authentication is self-signed, but didn't came up with any solution other than trying a certificate signed by a trusted authority. I also haven't been able to get the service reference in Visual Studio (got 403 unauthorised error) while the authentication against the certificate was required by the wcf service.

I'd be grateful for any ideas.