views:

8

answers:

0

Hi people,

I'm at my wit's end, and I'm hoping you can help me. I'm trying to get active WS-Trust authentication going with WIF from a web application to a web service, using a self-signed certificate.

I've already tried the following:

1) Install certificate in machine certificate store under Trusted Root Certification Authorities, Personal, and Trusted People

2) Make sure 'Everyone' has full access to Crypto/RSA/MachineKeys folder

3) Override certificate validation with ServicePointManager.ServerCertificateValidationCallback, to a method that just returns true. I can debug into this method and watch it return true.

And I STILL see this in the System.ServiceModel trace:

[0832] SecureChannel#66940002 - Certificate name mismatch.

[0832] SecureChannel#66940002 - Remote certificate was verified as invalid by the user.

And the application blows up with: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.