Apache2 and letsencrypt

Install letsencrypt

As root-user change to your preferred working-directory and clone letsencrypt-software using git. Then change to the new letsencrypt-directory and request the certificates:

sudo -s

cd /usr/local/src
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

Request certificates

./letsencrypt-auto --apache --d your.dedyn.io

Renew your certificates

Every 3 month you have to renew your certificates and restart at least Apache2:

sudo -s

cd /usr/local/src
./letsencrypt-auto certonly -a webroot --webroot-path /var/www/nextcloud/ -d your.dedyn.io --server https://acme-v01.api.letsencrypt.org/directory --agree-tos --renew-by-default
service apache2 restart

Carsten Rieger