π Hetzner CertificateΒΆ
Automates the process of issuing and deploying SSL certificates for domains managed by Hetzner DNS using acme.sh. Supports DNS-based validation and direct deployment to Synology DSM.
π οΈ Service ConfigurationΒΆ
- Loads environment variables from
.env
file - Installs and configures acme.sh
- Issues wildcard certificates via Hetzner DNS API
- Deploys certificates to Synology DSM
- Sets up automatic renewal
- Loads required environment variables from a
.env
file (must defineACME_ACCOUNT_EMAIL
,HETZNER_TOKEN
,DOMAIN
,SYNO_USERNAME
,SYNO_PASSWORD
). - Installs acme.sh if it is not already available on the system.
- Issues a wildcard SSL certificate for the specified domain using Hetzner DNS API.
- Deploys the issued certificate directly to Synology DSM using the acme.sh deploy hook.
- Optional: Adds a cron job to automatically renew certificates
π Important NotesΒΆ
- Requires internet access and permissions to install software
- Synology DSM must support certificate deployment via acme.sh
- The script will attempt to renew certificates automatically if cron is enabled
- The
.env
file must be present and contain all required variables
π UsageΒΆ
- Ensure your
.env
file contains:ACME_ACCOUNT_EMAIL
,HETZNER_TOKEN
,DOMAIN
,SYNO_USERNAME
,SYNO_PASSWORD
π Maintenance & UpdatesΒΆ
- To manually renew certificates:
- To update acme.sh: