Habe das hier im Web gefunden um wildcards von LE nach der Vorbereitung automatisiert über den Aufgabenplaner aktualisieren zu können.
Vielleicht für den ein oder anderen interessant.
1. Installing acme.sh
Open SSH client's terminal, go to any folder with write access permissions (e.g. /tmp or ~ folder), download and install acme.sh:
git clone
https://github.com/acmesh-official/acme.sh.git
cd ./acme.sh
./acme.sh --install \
--home /usr/local/acme.sh \
--cert-home /usr/local/acme.sh/certs \
--config-home /usr/local/acme.sh/data \
--accountemail "
email@example.com" \
--force # use it with elevation (sudo) for all commands
After successful installation remove the downloaded folder and restart the terminal in order to apply changes to the ACME-client settings (environment variables):
cd ..
rmdir acme.sh
2. Issuing cert
acme.sh supports several ways of domain approving (you can find all in acme.sh documentation).
For now the hook (dns_synology_dsm) is in development state and you can find it here only:
https://github.com/arabezar/acme.sh/blob/dev/dnsapi/dns_synology_dsm.sh
It's a good idea first trying to issue cert using test server (with debug log):
/usr/local/acme.sh/acme.sh --staging --debug 2 --issue --dns dns_synology_dsm -d example.com -d *.example.com --log
After successful issuing cert on staging server you can issue the real one:
/usr/local/acme.sh/acme.sh --issue --dns dns_synology_dsm -d example.com -d *.example.com --log
*) use --force when using elevation (sudo)
3. Updating cert
Updating can be realized using daily task.
Go to Control Panel -> Task Scheduler and add the new task with the name 'Lets Encrypt Update Cert' (run as root):
export LE_WORKING_DIR="/usr/local/acme.sh"
export LE_CONFIG_HOME="/usr/local/acme.sh/data"
/usr/local/acme.sh/acme.sh --config-home /usr/local/acme.sh/data --renew-all
4. Deploying cert
And at last the cert should be deployed to all modules. This can be done by adding another periodical task (e.g. monthly).
Go to Control Panel -> Task Scheduler and add the new task with the name 'Lets Encrypt Deploy Cert' (run as root):
export LE_WORKING_DIR="/usr/local/acme.sh"
export LE_CONFIG_HOME="/usr/local/acme.sh/data"
export SYNO_Create=1 # Create cert if not exists yet
export SYNO_Certificate="example.com" # Description text in Control Panel -> Security -> Certificates
/usr/local/acme.sh/acme.sh --config-home /usr/local/acme.sh/data --deploy -d example.com --deploy-hook synology_dsm