Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL Certificate encryption vs cypher encryption

I just installed a SSL certificate. This certificate is encrypted with 2048 bit encryption.

However, the cypher is 128 bit encryption(or 40, or some other variation depending on the browser.)

It seems that there are two different types of encryption here. The "handshake" encryption of 2048 and the "over the wire" encryption of some magnitude smaller.

Do I have this right in theory? Can anyone explain it better?

I have been all over the Google and cannot find a clear explanation of the difference between the two.

like image 280
cjburkha Avatar asked Oct 10 '08 17:10

cjburkha


2 Answers

There is a good entry in Wikipedia.

You are right, there are two kinds of encryption going on. The first one is asymmetric encryption or public key encryption - this is the one with the larger key. The second type is symmetric encryption with the smaller key.

The first type of encryption (asymmetric - larger key) is used to negotiate what type of symmetric encryption the client and the server will use. They'll also exchange the session key that they'll use. This is the handshake process and this is encrpyted using the asymmetric encryption

The session key is basically the key that they'll use when sending the real data, encrypted by whatever type they've decided on the handshake process. This is the symmetric encryption part.

like image 132
jop Avatar answered Nov 11 '22 19:11

jop


It is true that symmetric encryption typically uses much fewer bits for its key length. The reason is because symmetric encryption is much stronger at a given number of bits.

Asymmetric encryption (where each side has a different key) is much harder to pull off. It is more computationally intensive and therefore only used for the handshake portion or for encrypting a symmetric key that the rest of the message uses.

like image 33
Neall Avatar answered Nov 11 '22 20:11

Neall