Docsity

TLS Protocol Implementation: Client-Server Authentication and Session Key Establishment, Assignments of Computer Science

Toggle sidebar
bg1
Comments on programming assignment 3:
Since many students asked me about the implementation of TLS, I put my suggestions here. It’s
based on info from Wikipedia. You don’t have to follow it if you have found your way to simplify
TLS. But please explain your way in the write-up. Also, the assignment due date will be delayed
to this Thursday, 3/29/2007.
1. Client sends ClientHello to Server, which includes the cipher. The cipher will always be 1
since we will only use the cipher used in programming assignment 2. Assume Client and
Server knows each other’s key.
ClientHello,1
2. Server sends ServerHello to Client, which includes the cipher Server chose.
ServerHello,1
3. Server sends Server Certificate to Client, enciphered with Client’s key. Client decrypts it
and verifies it is correct.
Enc(“ServerCertificate”, Client_Key)
4. Client sends Client Certificate to Server, enciphered with Server’s key. Server decrypts it
and verifies it is correct.
Enc(“ClientCertificate”, Server_Key)
5. At this time they have authenticated each other. The next step is to establish the session
key for the rest communication. Server chooses a session key and sends it to Client with
a nonce, enciphered with Client’s key.
Enc(“S10,1234”, Client_Key)
6. Client decrypts this message and gets the session key. Encrypt the nonce with the
session key and sends it back to Server to answer the challenge. Server will verify it’s
correct.
Enc(“1234”, Session_Key).
7. Now the communication is established and they can start talking. Client sends the
request to Server.
Enc(“REQ,FS”, Session_Key).
8. Server decrypts this message to find out that Client wants to access FS. It checks the
privileges of Client to decide whether it can access FS. In our case it is always YES. Then
it sends YES to Client. Since AP is forwarding all these messages, it now knows that
Client can access FS.
Enc(“YES”, Session_Key).

Partial preview of the text

Download TLS Protocol Implementation: Client-Server Authentication and Session Key Establishment and more Assignments Computer Science in PDF only on Docsity!

Comments on programming assignment 3: Since many students asked me about the implementation of TLS, I put my suggestions here. It’s based on info from Wikipedia. You don’t have to follow it if you have found your way to simplify TLS. But please explain your way in the write-up. Also, the assignment due date will be delayed to this Thursday, 3/29/2007.

  1. Client sends ClientHello to Server, which includes the cipher. The cipher will always be 1 since we will only use the cipher used in programming assignment 2. Assume Client and Server knows each other’s key. ClientHello,
  2. Server sends ServerHello to Client, which includes the cipher Server chose. ServerHello,
  3. Server sends Server Certificate to Client, enciphered with Client’s key. Client decrypts it and verifies it is correct. Enc(“ServerCertificate”, Client_Key)
  4. Client sends Client Certificate to Server, enciphered with Server’s key. Server decrypts it and verifies it is correct. Enc(“ClientCertificate”, Server_Key)
  5. At this time they have authenticated each other. The next step is to establish the session key for the rest communication. Server chooses a session key and sends it to Client with a nonce, enciphered with Client’s key. Enc(“S10,1234”, Client_Key)
  6. Client decrypts this message and gets the session key. Encrypt the nonce with the session key and sends it back to Server to answer the challenge. Server will verify it’s correct. Enc(“1234”, Session_Key).
  7. Now the communication is established and they can start talking. Client sends the request to Server. Enc(“REQ,FS”, Session_Key).
  8. Server decrypts this message to find out that Client wants to access FS. It checks the privileges of Client to decide whether it can access FS. In our case it is always YES. Then it sends YES to Client. Since AP is forwarding all these messages, it now knows that Client can access FS. Enc(“YES”, Session_Key).