locked
SslStream AuthenticateAsClient multiple calls and Vista RRS feed

  • Question

  • Hi.
     

    When my client program runs under XP and calls a server (solaris in
    this case) via an SslStream all is well. The client may make multiple
    calls and multiple authentication calls and be fine. It appears as though everything gets cleaned up streamwise and socketwise.

    Running the client under Vista, when the second authentication call is made it returns the following SSPI error:

    "A call to the SSPI failed, see inner exception"

     

    which reads

    "the Local Security Authority cannot be contacted"

     

    Well that was pretty mystifying so I looked at what was going on with
    ethereal. Apparently, on the second authentication go-round the
    client asks the server to re-use a session Id. The server responds and then
    Vista rejects a re-used session Id (even though it asked to do that).

    What I have found out is that the .net framework caches SslStream sessions automatically, I have not found any way to turn this off for Vista - any ideas on how to do this?

    Thanks

    _Randal

    Thursday, May 3, 2007 12:51 PM

All replies

  • Randal - did you ever resolve this?  I'm having the exact same problem right now.

    Thanks.

    MCT
    Tuesday, July 8, 2008 8:39 PM