commun:certificat_ssl
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| commun:certificat_ssl [2018/09/18 08:38] – créée francois | commun:certificat_ssl [2022/01/04 09:21] (Version actuelle) – [Automatic renewal] francois | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| Utilisation du service " | Utilisation du service " | ||
| - | < | + | < |
| francois@maison ~]$ sudo certbot --apache | francois@maison ~]$ sudo certbot --apache | ||
| Saving debug log to / | Saving debug log to / | ||
| Ligne 76: | Ligne 76: | ||
| [francois@maison ~]$ | [francois@maison ~]$ | ||
| </ | </ | ||
| + | |||
| + | ===== Automatic renewal ===== | ||
| + | |||
| + | Create a systemd '' | ||
| + | |||
| + | ''/ | ||
| + | <code ini> | ||
| + | [Unit] | ||
| + | Description=Let' | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | ExecStart=/ | ||
| + | </ | ||
| + | |||
| + | If you do not use a plugin to manage the web server configuration automatically, | ||
| + | |||
| + | > Before adding a timer, check that the service is working correctly and is not trying to prompt anything. | ||
| + | |||
| + | Add a timer to check for certificate renewal twice a day and include a randomized delay so that everyone' | ||
| + | |||
| + | ''/ | ||
| + | |||
| + | <code ini> | ||
| + | [Unit] | ||
| + | Description=Twice daily renewal of Let's Encrypt' | ||
| + | |||
| + | [Timer] | ||
| + | OnCalendar=0/ | ||
| + | RandomizedDelaySec=1h | ||
| + | Persistent=true | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=timers.target | ||
| + | </ | ||
| + | |||
| + | Enable and start certbot.timer. | ||
| + | |||
| + | Ajouter un sous-domaine | ||
| + | sudo certbot -d blog.beafrancois.fr, | ||
commun/certificat_ssl.1537259933.txt.gz · Dernière modification : (modification externe)
