Table des matières

, , ,

Notes LetsEncrypt certbot

install

apt-get install certbot python3-certbot-nginx
#certbot certonly --standalone --rsa-key-size 4096 -d www.acme.fr --email root@acme.fr --agree-tos --no-eff-email
 
certbot --nginx -d www.acme.fr

crontab

0 21 * * * certbot -q renew --nginx --post-hook "systemctl reload nginx"

Lister tous les certificats gérés par let'sencrypt

certbot certificates

Effacer / décommissionner un certificat géré par let'sencrypt

certbot delete --cert-name old.acme.fr

OLD

Voir :

Install

Exemple 1

git clone --depth=1 https://github.com/certbot/certbot.git
cd certbot
./certbot-auto
#./certbot-auto --standalone --rsa-key-size 4096 -d www.acme.fr --email admin@acme.fr --agree-tos --no-eff-email

Exemple 2

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto

Usage

Exemple 1

/opt/letsencrypt/letsencrypt-auto --authenticator standalone --installer apache -d mondomaine.fr --pre-hook "service apache2 stop" --post-hook "service apache2 start" --renew-by-default

Exemple 2

./certbot-auto certonly --webroot --webroot-path /srv/www/domain.tld/ --domain domain.tld --domain www.domain.tld --email mon@email.com