HTTPS three-time handshake

Source: Internet
Author: User

1, the client input HTTPS URL, linked to the server443 port;

2, the server has a key and a lock, the lock is passed to the client. A digital certificate is both a public key and a lock

3, the client gets the lock, generates a random number, locks up the random number with the lock (encrypted), and then passes it to the server. This random number becomes the private key, and now only the client knows

4, the server with the key to open the lock, get random number. The random number becomes a new lock, locks the content (encrypted), and then passes it to the client. This random number server also knows and uses it to encrypt the data.

5, the client uses its own key (random number) to decrypt and get the content. client decrypts data with private key

6, the next client and server data exchange through this random number to encrypt. only the client and the server know the private key, so the data transfer is secure, not plaintext

The illustrations are as follows:

HTTPS three-time handshake

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.