How do I get the server to return the certificate?

I get exception opening Session: “Server did not return the certificate used to create the secure channel.”

I don’t know; what stack are you using? I haven’t seen this before.

PS: I just checked and the server is returning the same certificate in the CreateSessionResponse as it does when you open a secure channel.