Wiki GeRgOsNet Notes d’administration système, réseau et domotique

Vous consultez une ancienne version, enregistrée le 23 janvier 2021 par GreG. Voir la version actuelle.

Letsencrypt

Récupéré sur la Wayback Machine (capture du 23/01/2021)

Utilisation avec un serveur Apache sous debian/ubuntu

  • Installation :
apt-get update
apt-get install git
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt --depth=1
  • Configuration auto :
/opt/letsencrypt/letsencrypt-auto
  • Création d'un certificat :
/opt/letsencrypt/letsencrypt-auto certonly
  • Ajout certificat intermediaire :
cd /etc/apache2/
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem
  • Ajout dans votre vhost Apache :
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/mondomaine.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mondomaine.com/privkey.pem
SSLCertificateChainFile /etc/apache2/lets-encrypt-x3-cross-signed.pem
  • Renouvellement d'un certificat :
/opt/letsencrypt/letsencrypt-auto certonly --webroot -w /home/monsite/public_html/monrep/ -d mondomaine.com --email=spam@gergosnet.com --agree-tos --renew-by-default