Categories

Category cover

Automation
43 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
15 posts

Category cover

CISO
14 posts

Category cover

Infrastructure
12 posts

Category cover

Learning paths
9 posts

Category cover

OT/ICS
6 posts

Category cover

UNetLab
4 posts

Category cover

Books
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

Let's Encrypt certificates with certbot

Andrea Dainese
August 07, 2020
Post cover

On my home Linux box, I implemented Let’s Encrypt to properly manage secure HTTPs connections. To properly configure it we need to:

  • Make the directory /.well-known reachable via HTTP and mapped locally under /var/www/html/.well-known.
  • Register a valid email address: certbot update_account --email [email protected].
  • Register a new domain: certonly --webroot -w /var/www/html --preferred-challenges http -d www.example.com.
  • Display installed certificates: certbot certificates.
  • Renew expiring certificates: certbot renew.

Additional notes:

  • If we are using DDNS domains, the process can fail because a limited number of certificates are allowed for each domain.