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

Letsencrypt

Letsencrypt

Mis à jour le 23 janvier 2021 1 min de lecture Historique

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

Ancien titre MediaWiki : Letsencrypt