Solved

Whats the use of master secret

Posted on 2016-09-20
4
49 Views
Last Modified: 2016-10-06
Hi,
In SSL handshake a master secret is generated. I guess this secret is the same for both client and server.
where exactly is this used. Is it used to encrypt or decrypt data ?
client and server already exchange a cipher suite how is the cipher suite related to this master secret

Thanks
0
Comment
Question by:Rohit Bajaj
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Pawan Kumar Khowal
ID: 41806428
Its main purpose is to keep data confidential. & data integrity - if someone or something, willingly or not, alters data in transit, then the receiver must be able to reliably detect it.
0
 

Author Comment

by:Rohit Bajaj
ID: 41806485
So when client sends some packet to server it encrypts the packet with master secret and same way server also encrypts with this same master secret and send the packet to client ?
Then where does the encryption that is sent in cypher suite comes into play ?
0
 
LVL 17

Accepted Solution

by:
Pawan Kumar Khowal earned 500 total points
ID: 41806807
Read # number 5,7,8 &9. This should help.

1. The client sends a "Client hello" message to the server, along with the client's random value and supported cipher suites.

2. The server responds by sending a "Server hello" message to the client, along with the server's random value.

3. The server sends its certificate to the client for authentication and may request a certificate from the client. The server sends the "Server hello done" message.

4. If the server has requested a certificate from the client, the client sends it.

5. The client creates a random Pre-Master Secret and encrypts it with the public key from the server's certificate, sending the encrypted Pre-Master Secret to the server.

6. The server receives the Pre-Master Secret. The server and client each generate the Master Secret and session keys based on the Pre-Master Secret.

7. The client sends "Change cipher spec" notification to server to indicate that the client will start using the new session keys for hashing and encrypting messages. Client also sends "Client finished" message.

8. Server receives "Change cipher spec" and switches its record layer security state to symmetric encryption using the session keys. Server sends "Server finished" message to the client.

9. Client and server can now exchange application data over the secured channel they have established. All messages sent from client to server and from server to client are encrypted using session key.
0
 

Author Comment

by:Rohit Bajaj
ID: 41817549
Hi,
I still have some confusion. I understand that master secret is computed from pre-master secret and random values.
But as you mentioned that all messages from client to server and server to client are encrypted using session keys...

1) Both sides have same session keys ?
2) where is the master secret used here..... is it used to decrypt the messages whereas session keys are used to encrypt the messages ?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
You cannot be 100% sure that you can protect your organization against crypto ransomware but you can lower down the risk and impact of the infection.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now