Documentation de Libre-service.eu https://www.libre-service.eu/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

716 B

Let's encrypt

Installation

Installer les paquets :

apt-get install dehydrated dehydrated-apache2

Recharger Apache :

systemctl reload apache2.service
/usr/bin/dehydrated --register --accept-terms

Générer un certificat

Ajouter foo.libre-service.eu dans /etc/dehydrated/domains.txt.

Lancer la génération :

/usr/bin/dehydrated -c

Le certificat est généré dans /var/lib/dehydrated/certs/foo.libre-service.eu/.

Renouvellement automatique

Ajouter un script cron dans /etc/cron.weekly/dehydrated :

#!/bin/bash

/usr/bin/dehydrated -c
systemctl reload apache2.service

Et lui donner les bonnes permissions :

chmod a+rx /etc/cron.weekly/dehydrated