m1gin 437

Install certbot and letsencrypt

sudo apt install certbot letsencrypt
sudo apt-get install python3-certbot-apache

Create a certificate:

sudo certbot certonly --manual --preferred-challenges=dns

List Certificates:

sudo certbot certificates

Renewing certificates:

sudo certbot certonly --manual --preferred-challenges=dns -d mbirgin.com,*.mbirgin.com

2024-04 : with auto renewable way (not fully tested):

  • sudo certbot certonly --webroot -w /var/www/mbirgin/mbirgin.com/ -d mbirgin.com -d *.mbirgin.com

Automatic renewing existing certificates

This method doesn't work for dns challenges

sudo certbot renew

List certificates:

sudo certbot certificates

Renew a certain certificate by name:

sudo certbot renew --cert-name mbirgin.com

Alternative way to create a certificate:

sudo certbot certonly --agree-tos --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory -d *.mbirgin.com -d mbirgin.com

Create certificates automatically using existed apache configurations:

sudo certbot --apache --no-redirect


Add to: