Introduction
  SSL/TLS
Nguyen Ngo, Ninh Khong
Agenda
Introduction
  Background
 • What ‘s SSL/TLS?
 • Cryptography Methods.
 • Where SSL/TLS Fit?
 • SSL Architecture
HandShake Protocol
 • Client Hello.
 • Server Hello
 • Client Exchange
Applications
  Web and Mail
  Other
INTRODUCTION
Background
What ‘s SSL/TLS?


  Transport Layer Security (TLS) and Its
predecessor, Secure Sockets Layer (SSL),
 are cryptographic protocols that provide
communication security over the Internet.
  TLS and SSL encrypt the segments of
     network connections above the
             Transport Layer.
Cryptography Methods
• Key Exchange: Using Assymmetric Cryptography.
• Privacy: Using Symmetric Cryptography.
• Message Integrity: Using Message Authentication
  Codes (MAC).
Where SSL/TLS Fit?

    HTTP SMTP POP3      HTTPS SSMTP SPOP3
    80   25    110       443      465     995


                         Secure Sockets Layer


                 Transport


                     Network


                      Link
SSL Architecture
HandShake
     Protocol
Handshake Protocol
         1 ClientHello
         1
                                       ServerHello 2
                                                   2
Client                                 Certificate   3
                                                         Server
                                                     3
                                CertificateRequest 4
                                                   4
                                  “ServerHelloDone” 5
                                                    5
         6 Certificate
         6
         7 ClientKeyExchange
         7
         8 CertificateVerify
         8

         9 [ChangeCipherSpec]
         9
         10 Finished
         10
                                [ChangeCipherSpec] 11
                                                   11

                                          Finished 12
                                                   12
Client Hello (RFC)
  struct {
    TimeStamptimestamp;
    ProtocolVersion client_version;
    Random        random;
    SessionID     session_id;
    CipherSuite   cipher_suites;
    CompressionMethod compression_methods;
  } ClientHello
Server Hello
Client   1 C, Versionc, suitec, Nc
         1
                                                                Server
                                      Versions, suites, Ns, 2
                                                            2
                                              sigca(S,Ks), 3
                                                           3
                                     “ ServerHelloDone” 4
                                                        4
Client Key Exchange
Client   1 C, Versionc, suitec, Nc
         1
                                                               Server
                                     Versions, suites, Ns, 2
                                                           2
                                             sigca(S,Ks), 3
                                                          3
                                     “ServerHelloDone” 4
                                                       4
         5 {Secretc}Ks
         5
Applications
Web and Mail
 • HTTPS

 • Secure Mail
    • SSMTP
    • SPOP3
Others
• sTelnet
• sTunnel
• OpenSSH
• SSLProxy
• sFTP
THANK YOU

SSL

  • 1.
  • 2.
    Agenda Introduction  Background • What ‘s SSL/TLS? • Cryptography Methods. • Where SSL/TLS Fit? • SSL Architecture HandShake Protocol • Client Hello. • Server Hello • Client Exchange Applications  Web and Mail  Other
  • 3.
  • 4.
  • 5.
    What ‘s SSL/TLS? Transport Layer Security (TLS) and Its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide communication security over the Internet. TLS and SSL encrypt the segments of network connections above the Transport Layer.
  • 6.
    Cryptography Methods • KeyExchange: Using Assymmetric Cryptography. • Privacy: Using Symmetric Cryptography. • Message Integrity: Using Message Authentication Codes (MAC).
  • 7.
    Where SSL/TLS Fit? HTTP SMTP POP3 HTTPS SSMTP SPOP3 80 25 110 443 465 995 Secure Sockets Layer Transport Network Link
  • 8.
  • 9.
    HandShake Protocol
  • 10.
    Handshake Protocol 1 ClientHello 1 ServerHello 2 2 Client Certificate 3 Server 3 CertificateRequest 4 4 “ServerHelloDone” 5 5 6 Certificate 6 7 ClientKeyExchange 7 8 CertificateVerify 8 9 [ChangeCipherSpec] 9 10 Finished 10 [ChangeCipherSpec] 11 11 Finished 12 12
  • 11.
    Client Hello (RFC) struct { TimeStamptimestamp; ProtocolVersion client_version; Random random; SessionID session_id; CipherSuite cipher_suites; CompressionMethod compression_methods; } ClientHello
  • 12.
    Server Hello Client 1 C, Versionc, suitec, Nc 1 Server Versions, suites, Ns, 2 2 sigca(S,Ks), 3 3 “ ServerHelloDone” 4 4
  • 13.
    Client Key Exchange Client 1 C, Versionc, suitec, Nc 1 Server Versions, suites, Ns, 2 2 sigca(S,Ks), 3 3 “ServerHelloDone” 4 4 5 {Secretc}Ks 5
  • 14.
  • 15.
    Web and Mail • HTTPS • Secure Mail • SSMTP • SPOP3
  • 16.
    Others • sTelnet • sTunnel •OpenSSH • SSLProxy • sFTP
  • 17.

Editor's Notes