Skip to content

Instantly share code, notes, and snippets.

@yooouuri
Created February 7, 2017 17:55
Show Gist options
  • Select an option

  • Save yooouuri/d538d16de73583280c1ade413b875cf8 to your computer and use it in GitHub Desktop.

Select an option

Save yooouuri/d538d16de73583280c1ade413b875cf8 to your computer and use it in GitHub Desktop.
Letsencrypt
cd /opt/letsencrypt
# command uitvoeren
sudo -H ./letsencrypt-auto certonly --standalone --renew-by-default -d example.com -d www.example.com
# voorbeeld nginx conf
# jouw config is: /etc/nginx/sites-available/maartenpeels.com
# voeg onderstaande toe aan je server { ... } block
listen 443 ssl;
listen [::]:443 ssl;
ssl on;
ssl_certificate /etc/letsencrypt/live/yourivanmill.nl/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourivanmill.nl/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/yourivanmill.nl/chain.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
# Allow access to the letsencrypt ACME Challenge
location ~ /\.well-known\/acme-challenge {
allow all;
}
# zie mijn config als voorbeeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment