Deploying dehydrated for apache2 on Debian Jessie:
wget https://gist.githubusercontent.com/waja/8df78afb09691e4f383d818685f48885/raw/deploy_dehydrated.sh \
-O /tmp/deploy_dehydrated.sh && \
bash /tmp/deploy_dehydrated.sh <registration email>
Now you need to create /etc/dehydrated/domains.txt
like documented.
Running the cronjob for initial request of certs:
/etc/cron.daily/dehydrated_autorenew
If you are hit by Provided agreement URL ... does not match current agreement URL ... you need to use at least dehydrated 0.4.0, for example from stretch-backports. Use:
/usr/bin/dehydrated -c --accept-terms && /etc/cron.daily/dehydrated_autorenew
/usr/local/sbin/dehydrated_create_links
For distributed setups you might want to have a look into Using redirects or Use and automate letsencrypt certificates (ACME) in an high-availability environment.