Renouveler le certificat Synology
Générer et déployer un certificat Let's Encrypt sur Synology DSM.
Prérequis
- accès SSH au NAS ;
- domaine géré par OVH ;
- clés API OVH
AK,ASetCK.
1. Installer acme.sh
curl https://get.acme.sh | sh -s -- \
--accountemail "adresse@example.com" \
--nocron
2. Configurer OVH
Créer ~/.acme.sh/ovh.ini :
export OVH_AK="..."
export OVH_AS="..."
export OVH_CK="..."
chmod 600 ~/.acme.sh/ovh.ini
3. Générer le certificat
source ~/.acme.sh/ovh.ini
~/.acme.sh/acme.sh --issue \
-d example.com \
--dns dns_ovh \
--server letsencrypt
4. Déployer dans DSM
source ~/.acme.sh/ovh.ini
~/.acme.sh/acme.sh --deploy \
--home ~/.acme.sh/ \
-d example.com \
--deploy-hook synology_dsm
5. Automatiser
- ouvrir Panneau de configuration → Planificateur de tâches ;
- créer une tâche planifiée ;
- charger
ovh.ini, puis lanceracme.sh --cron; - contrôler le journal après la première exécution.
Checklist
-
ovh.iniprotégé - Certificat généré
- Déploiement DSM réussi
- Tâche planifiée testée
- Certificat présenté par DSM vérifié