The difference between the HTTP protocol and the HTTPS protocol is as follows:
1) The HTTP protocol transmits data in the network in plain text, while the data transmitted by the HTTPS protocol is encrypted by TLS. HTTPS has higher security.
2) HTTPS needs to perform SSL handshake after the TCP three-way handshake phase to negotiate the symmetric encryption key used for encryption
3) The HTTPS protocol requires the server to apply for a certificate and the browser to install the corresponding root certificate
4) HTTP protocol port is 80, HTTPS protocol port is 443
Advantages of HTTPS:
The encryption key is used to encrypt data during HTTPS transmission, so the security is higher
The HTTPS protocol can authenticate users and servers to ensure that data is sent to the correct users and servers
Disadvantages of HTTPS:
The delay of the HTTPS handshake phase is relatively high: Since the SSL handshake is required before the HTTP session, the delay of the HTTPS protocol handshake phase is increased
HTTPS deployment cost is high: On the one hand, the HTTPS protocol needs to use a certificate to verify its own security, so you need to purchase a CA certificate; on the other hand, because the HTTPS protocol requires encryption and decryption calculations, it takes up more CPU resources and requires server configuration or High number