1, Introduction:
HTTPS is the most common version of HTTP security. It has been widely used by all major commercial browsers and servers that provide HTTPS. HTTPS combines the HTTP protocol with a powerful set of symmetric, asymmetric, and certificate-based encryption technologies , making HTTPS not only secure, but also flexible and easy to manage on a fragmented, decentralized global internet.
HTTPS is the HTTP that is sent on the secure Transport layer. HTTPS sends an HTTP message to TCP before sending it to a security layer to encrypt it. that is, from top to bottom: Application layer (HTTP)-Security layer (SSL or TLS)-Transport layer (TCP)-Network layer (IP)-Data Link layer (network interface).
The HTTP security layer is now implemented via SSL (Secure Sockets Layer) and its modern alternative protocol, TLS (Secure Transport Layer protocol). SSL or TLS is generally used as a reference.
2. About SSL
1) The process of establishing a connection between SSL and the secure server:
In HTTPS, the client first opens a connection to the Web server 443 port (the default). After a TCP connection is established, the client and server initialize the SSL layer, communicate the encryption parameters in binary format, and exchange the keys. After the handshake is complete, the SSL initialization is complete, and the client can send the request message to the security layer for encryption and then send it to TCP.
2) SSL Handshake
Step: Exchange Protocol version number; Select a password that is known both at both ends, authenticate the identities on both sides, and generate a temporary session key to encrypt the channel . For a simplified version of the SSL handshake process:
Resources:
"HTTP authoritative guide"
Continue to learn in ...
Basic knowledge of HTTPS