This is an old revision of the document!
https://gist.github.com/cecilemuller/a26737699a7e70a7093d4dc115915de8
apt-get install software-properties-common add-apt-repository ppa:certbot/certbot apt-get update apt-get install certbot
Create “/etc/nginx/letsencrypt/letsencrypt.conf” with the following
location ^~ /.well-known/acme-challenge/ { default_type "text/plain"; root /usr/local/nginx/html/letsencrypt; }
Add this to your siteconfiguration inside server{} for http/ port80
include /etc/nginx/letsencrypt/letsencrypt.conf;
Create a folder for challanges
mkdir -p /usr/local/nginx/html/letsencrypt/.well-known/acme-challenge<code> ==== apache2 ==== ===== Get certs ===== <code> certbot certonly --webroot --agree-tos --no-eff-email --email <yourmail> -w /var/www/lunetikk/ -d lunetikk.de -d www.lunetikk.de
Add to your vhost config
SSLCertificateFile /etc/letsencrypt/live/lunetikk.de/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/lunetikk.de/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/lunetikk.de/fullchain.pem