Re: SSL Session reuse with SChannel (Windows)



On May 27, 7:54 am, DaveMo <david.mow...@xxxxxxxxx> wrote:
On May 25, 1:46 am, ju <juofl...@xxxxxxxxx> wrote:

Hello

I have a program that use schannel.dll to make a SSL connection to
remote server. But I'd like to disconnect from server often and
reconnect without the need to renegotiate shared key again. I know
that SSL support this, but don;t know how to make it with SChannel.

Here are some links that can help:

Creating a Secure Connection Using Schannel:http://msdn.microsoft.com/en-us/library/aa374782(VS.85).aspx

SSL session reuse - how to find if supported?:http://royontechnology.blogspot.com/2008/01/how-to-find-out-if-server...

I believe this is default behavior as long as you don't mess with the
flags in the SCHANNEL_CRED structure. Witness:

dwSessionLifespan
The number of milliseconds that Schannel keeps the session in its
session cache. After this time has passed, any new connections between
the client and the server require a new Schannel session. Set the
value of this member to zero to use the default value of 36000000
milliseconds (ten hours).

Banes will probably post something later telling me I'm wrong. He
loves doing that :)

HTH,
Dave

If you want reconnects to work it's important to use the same
credential handle for each connection. You'll also need to pass in the
same targetname string when calling InitializeSecurityContext. Pretty
much everything else is automatic.

Regards,
John
.



Relevant Pages

  • Re: Restrict WAN access
    ... If the user leaves his session disconnected the TS Server will reconnect him" ... is he Lan only or lan&Wan user? ... In my company there are a Windows 2003 Terminal Server that users access to work every day. ...
    (microsoft.public.windows.terminal_services)
  • RE: Windows 2003 mutiple session issues
    ... Can you disconnect and reconnect from the same client? ... MCSE, CCEA, Microsoft MVP - Terminal Server ... When the new session started all appeared to work, ...
    (microsoft.public.windows.terminal_services)
  • Re: SSL Session reuse with SChannel (Windows)
    ... remote server. ... reconnect without the need to renegotiate shared key again. ... but don;t know how to make it with SChannel. ... The number of milliseconds that Schannel keeps the session in its ...
    (microsoft.public.platformsdk.security)
  • Re: Virtual channel reconnect on longhorn (Win2k8)
    ... to server by writing an add-in. ... as well as reconnected session, ... server then for new session virtual channel works perfectly but when I ... disconnect this session and again reconnect it then ...
    (microsoft.public.windows.terminal_services)
  • RE: TS Session Broken Windows 2008
    ... "Patrick Rouse" wrote: ... when they attempt to reconnect after their session is terminated. ... online server. ...
    (microsoft.public.windows.terminal_services)