Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does SSL use symmetric and asymmetric encryption? And how do I manage certificated for multiple sites on one host? [duplicate]

Tags:

First, some quotation from Microsoft TechNet's Managing Microsoft Certificate Services and SSL:

To recap, secure SSL sessions are established using the following technique:

  1. The user's Web browser contacts the server using a secure URL.

  2. The IIS server sends the browser its public key and server certificate.

  3. The client and server negotiate the level of encryption to use for the secure communications.

  4. The client browser encrypts a session key with the server's public key and sends the encrypted data back to the server.

  5. The IIS Server decrypts the message sent by the client using its private key, and the session is established.

  6. Both the client and the server use the session key to encrypt and decrypt transmitted data.

So, basically speaking, the SSL use the asymmetric encryption (public/private key pair) to deliver the shared session key, and finally achieved a communication way with symmetric encryption.

Is this right?

Add - 1 - 5:55 PM 12/17/2010

I am using IIS to host my websites. Suppose I have multiple sites on my single machine, and I want the client brower to use SSL URL to connect my sites. How many certificates do I need? Which of the following approach should I take?

1 - Apply for a single certicate and associate it to my single server machine which hosts mutiple sites.

2 - Apply for several certificates and associate each of my sites with its own certificate.

In IIS7, it seems I could only do approach 1.

Update - 1 - 6:09 PM 12/17/2010

I figure it out. I could install mutiple certificates on my server machine and bind each site with seperate certificate as necessary.

like image 427
smwikipedia Avatar asked Dec 17 '10 09:12

smwikipedia


People also ask

Why SSL uses both asymmetric and symmetric encryption?

SSL/TLS uses both asymmetric and symmetric encryption to protect the confidentiality and integrity of data-in-transit. Asymmetric encryption is used to establish a secure session between a client and a server, and symmetric encryption is used to exchange data within the secured session.

How are asymmetric and symmetric encryption used together?

Asymmetric and symmetric encryption are typically used together: use an asymmetric algorithm such as RSA to securely send someone an AES (symmetric) key. The symmetric key is called the session key; a new session key may be retransmitted periodically via RSA. This approach leverages the strengths of both cryptosystems.

How does SSL work between two servers?

In two-way SSL authentication, the client application verifies the identity of the server application, and then the server application verifies the identity of the client application. Both parties share their public certificates, and then validation is performed.

How does encryption work in SSL?

SSL uses port number 443, encrypting data exchanged between the browser and the server and authenticating the user. Therefore, when the communications between the web browser and server need to be secure, the browser automatically switches to SSL — that is, as long as the server has an SSL certificate installed.


1 Answers

Yes, that's right. Asymmetric encryption is necessary to verify the others identity and then symmetric encryption gets used because it's faster.

like image 184
thejh Avatar answered Nov 15 '22 12:11

thejh