SSL/TLS
一句话解释
SSL/TLS 是 security protocol 那个 encrypts 数据之间客户端 and 服务器, 启用 HTTPS.
用大白话说
SSL (Secure Sockets Layer) and its successor TLS (Transport Layer Security) are protocols that encrypt communication between a client and a server. When you see the padlock icon in your browser, that means SSL/TLS is protecting your connection.
SSL 是the older protocol and has been deprecated due to security vulnerabilities。 TLS is the modern, secure version. However, people still commonly say "SSL certificate" when they mean "TLS certificate."
In DevOps, you obtain a certificate from a Certificate Authority (like Let's Encrypt, DigiCert) and configure your web server or Ingress to use it. The certificate contains a public key and proves the server's identity. TLS termination means the proxy handles HTTPS and forwards plain HTTP to the backend.
示例
# Get a free certificate from Let's Encrypt
certbot --nginx -d example.com
# Or configure TLS in nginx manually
# server {
# listen 443 ssl;
# ssl_certificate /path/to/cert.pem;
# ssl_certificate_key /path/to/key.pem;
# }Certbot automatically 获取 and 安装 Let's Encrypt TLS certificate for nginx.
工作原理
- The client connects to the server and requests a secure connection.
- The server sends its TLS certificate (containing its public key).
- The client verifies the certificate with a Certificate Authority.
- Both sides agree on encryption keys and communicate securely.
常见混淆
容易混淆的对象: HTTPS
关键区别: SSL/TLS 是 encryption protocol; HTTPS 是 HTTP over SSL/TLS. HTTPS uses TLS 到 encrypt HTTP traffic.
相关术语
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。