This website building note, published on July 30, 2025, is titled "What is the principle of SSL encryption in web projects?". The actual environment or tools involved include SSL.
Scheme and parameters
| Phase | Core Actions | Key technologies and objectives |
|---|---|---|
| 1. Handshake Phase | The client exchanges supported encryption algorithms and random numbers with the server, and verifies the validity of the server certificate. | Negotiated encryption algorithm - Exchange random numbers (Client Random/Server Random) - Verify server identity via CA certificate |
| 2. Key Generation Phase | The client encrypts the pre-master key using the server's public key and sends it. Both parties then calculate the session key (symmetric encryption key) using a random number and the pre-master key. | Asymmetric encryption for transmitting pre-master keys (RSA/ECC) - Symmetric key generation (AES, etc.) - Ensuring secure key negotiation |
| 3. Encrypted Communication Phase | Both parties use a session key to symmetrically encrypt data and attach a MAC (Message Authentication Code) to verify integrity. | Symmetric encryption for data transmission (highly efficient and secure) - MAC prevents tampering (e.g., HMAC-SHA256) |
| 4. Conversation Closure Phase | The client or server sends a close notification to terminate the session and clear the session key. | To prevent the risk of key leakage due to long-term key retention |
Usage Environment
SSL.
Key points to check
Certificate CheckWhen adding a certificate, you should verify the bound domain name, validity period, and certificate chain. Browser errors may be caused by an incomplete certificate chain or a mismatched domain name.
Network testing standardsThe outbound and return routes may use different paths. When comparing nodes, the test region, carrier, and test time period should be recorded simultaneously.
Prices, currencies, and billing cycles are as used at the time of publication. Different cycles, regions, initial discounts, or renewal fees should be compared separately.