SSL/TLS Commands
Implement secure HTTPS connections with modern TLS protocols, automate certificate management with Let's Encrypt and Certbot, configure strong cipher suites, and enable security headers like HSTS.
8 commands
Pro Tips
Use Certbot for free Let's Encrypt certificates: `certbot --nginx -d example.com` automates the entire setup.
Enable HTTP/2 with HTTPS for better performance: `listen 443 ssl http2;` in your server block.
Configure HSTS to force HTTPS: `add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;`
Use Mozilla SSL Configuration Generator to get modern cipher suites and TLS settings for your Nginx version.
Common Mistakes
Never commit SSL private keys to version control. Store them securely with restricted file permissions (chmod 600).
Test SSL configuration with SSL Labs before going live - misconfigurations can leave your site vulnerable.