HTTP is an excellent communication protocol, but everything has two sides. The protocol also has shortcomings, which are roughly as follows:
1. HTTP does not have encryption function The HTTP protocol itself does not have encryption function, so it is impossible to encrypt the content of requests and responses. HTTP messages are in plain text, and data packets can be easily stolen when transmitted between networks, such as using packet capture tools (Wireshark). After capturing the data packets, they are analyzed. Since the messages are transmitted in plain text, if the content is about important privacy such as personal information, it may be obtained by others and used, causing losses. 2. Encrypt the content Encrypting content is a good way to protect information. HTTP does not have an encryption mechanism, so a third party is needed to help implement encryption. There are many ways to encrypt content, such as:
It is mainly divided into two categories, symmetric encryption and asymmetric encryption (we will not discuss encryption in depth here, and friends who are interested can refer to relevant information).
3. The shortcomings of only encrypting the content
Therefore, only encrypting the content is not perfect. A more comprehensive security solution is needed to ensure not only the security of the content but also the security of communications and other aspects - HTTPS. 3. What are SSL and TSL? Before discussing HTTPS, we need to understand the SSL and TLS protocols.
SSL technology was initially developed by Netscape, which developed versions before SSL3.0 and then transferred the leadership to IETF. IETF developed the TSL protocol based on SSL. The current mainstream versions are SSL3.0 and TLS1.0. 4. Basic concepts of HTTPS HTTPS is not a new protocol, it is to replace the HTTP protocol communication interface part with SSL and TSL protocols. As shown in the following figure: Analysis: HTTP and TCP communicate directly at first, but now HTTP communicates with SSL first, and then SSL communicates with TCP. It can be understood that HTTP becomes HTTPS by adding an extra layer of SSL protocol. Below, HTTPS is expressed through a formula: HTTP + encryption + authentication + integrity protection = HTTPS 5. How does HTTPS communicate? Overview: The HTTPS communication process combines symmetric encryption and asymmetric encryption. When the HTTPS server establishes SSL communication, it will first send its public key to the client. After the client obtains the public key, it negotiates with the server through asymmetric encryption for the symmetric encryption key of the data transmission channel. Once the two parties have negotiated a session key, subsequent data communications will always use the symmetric encryption algorithm based on the session key. Specific process:
Is using HTTPS perfect?
HTTPS is slower than HTTP because it requires SSL communication in addition to TCP connection and HTTP request response. Secondly, the client and server need to perform encryption and decryption processing. When the number of visits is large, the load will increase compared to HTTP. In addition, HTTPS communication requires the purchase of a certificate, which may not be cost-effective for some services or small websites. 6. In what scenarios is HTTPS more suitable? In summary, HTTPS is suitable for encrypted communication in services that require high security, such as transaction payment, including some services that may contain personal sensitive information. For non-sensitive information, HTTP communication is used.
VII. Conclusion HTTP is an excellent protocol, but its security is relatively poor due to reasons such as its lack of support for encryption. There are many ways to improve security, such as using encryption algorithms to encrypt content. The HTTPS protocol provides a more complete solution. HTTPS is not a new protocol, but a combination of HTTP and SSL/TSL to achieve communication security. However, HTTPS also has its shortcomings, so it must be used reasonably in combination with specific scenarios to give full play to the powerful role of HTTPS. |
<<: Huawei releases next-generation CloudLink video conferencing solution
>>: How 5G will revolutionize healthcare
On September 27, at the China (Beijing) Internati...
TmhHost launched a New Year's Day promotion, ...
We have previously shared information about CMIVP...
Building equipment suppliers are prioritizing gre...
In April, I shared information about LiCloud.io. ...
RackNerd is a foreign VPS hosting company founded...
September and October are the golden months. Now ...
The underlying resource management platform of di...
[[342624]] This article is reprinted from the WeC...
Is this the norm for most people now? They hold 5...
During the interview process, HTTP is often asked...
When it comes to cabling inter-chassis links (ICL...
[Original article from 51CTO.com] On April 2, Hua...
On December 18, 2019, Aruba, a subsidiary of Hewl...
[[416579]] Single-pair Ethernet was originally de...