LLevelUp
0
← Back to topic

TLS with Certbot

TLS certificates let browsers verify they are talking to the correct domain and encrypt traffic. Let’s Encrypt provides free certificates, and Certbot automates issuance and renewal.

sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run

TIP

DNS must already point to the server before HTTP validation can succeed.

Certificate renewal usually runs through a system timer. Always test renewal after setup.

Further Learning

  • “Certbot nginx Ubuntu” — install flow
  • “Let’s Encrypt HTTP challenge” — validation model
  • “certbot renew dry run” — renewal testing