Jump to content

Tcp And Ssl


Recommended Posts

  • 1 year later...

I've been looking around for this as well... the best i could find is this

MSDN .NET Framework Developer's Guide - Using Secure Sockets Layer

SslStream Class C# Code

If your feeling quite adventurous you can use RFC 2246 and build it. I did something similar for my SMTP implementation... although that is trivial compared to SSL/TLS.

Edited by mikeytown2
Link to comment
Share on other sites

I studied the RFC as well as the source code for openssl and NSS (modzilla's ssl). In theory i believe autoit could do SSL. Using what i learned from the Base64 UDF is that ssl will be incredibility slow in autoit unless you do some major optimizing. Thus I'm not that motivated to even attempt this. Below is some of the things i have learned about SSL.

This is a diagram from the RFC on how SSL works

Client                                             Server

      ClientHello                 -------->
                                                      ServerHello
                                                     Certificate*
                                               ServerKeyExchange*
                                              CertificateRequest*
                                   <--------      ServerHelloDone
      Certificate*
      ClientKeyExchange
      CertificateVerify*
      [ChangeCipherSpec]
      Finished                   -------->
                                               [ChangeCipherSpec]
                                   <--------             Finished
      Application Data           <------->   Application Data


   * Indicates optional or situation-dependent messages that are not
   always sent.

The output from SSLTap is very helpful for understanding more of what is going on.

www.componentspot.com appears to offer a dll with example code on how to implement ssl... i will be investigating this further

openSSL 0.9.7d Library

Edited by mikeytown2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...