Skip to content

Instantly share code, notes, and snippets.

@mdmsua
Last active December 30, 2016 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdmsua/4f39b8aab00089ac2e204746140435be to your computer and use it in GitHub Desktop.
Save mdmsua/4f39b8aab00089ac2e204746140435be to your computer and use it in GitHub Desktop.
curl -s http://nginx.org/keys/nginx_signing.key > /tmp/nginx.key
sudo apt-key add /tmp/nginx.key
rm /tmp/nginx.key
sudo apt-add-repository "deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx"
sudo apt-add-repository "deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx"
sudo apt-get update
sudo apt-get install nginx letsencrypt -y
sudo letsencrypt certonly --standalone -d "$DOMAIN" --email "$EMAIL" --agree-tos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment