Skip to content

SSL/TLS

In one line

SSL/TLS is the encryption protocol that secures communication between a browser and a server, enabling HTTPS.

In simple words

SSL (Secure Sockets Layer) and its successor TLS (Transport Layer Security) are cryptographic protocols that encrypt data between a client and server. When you see "https://" and the padlock icon in your browser, TLS is encrypting the connection.

TLS works by: the server presenting a certificate (proving its identity), the client and server negotiating encryption keys, and then all subsequent communication being encrypted. This prevents eavesdropping, tampering, and forgery.

SSL is the older, now-deprecated protocol. TLS is the current standard (TLS 1.2 and 1.3). In practice, people still say "SSL certificate" even though they mean TLS. Modern browsers require HTTPS for many features (geolocation, camera, service workers) and flag non-HTTPS sites as "Not Secure".

Example

text
1. Browser connects to server on port 443
2. Server sends its TLS certificate (public key)
3. Browser verifies the certificate with a CA
4. Both sides negotiate a shared encryption key
5. All data is encrypted for the session

The TLS handshake process: certificate exchange, verification, key negotiation, then encrypted communication.

Related terms

Related Resources

Related Lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary