Skip to content

Instantly share code, notes, and snippets.

@khapota
Last active March 30, 2016 09:13
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 khapota/5679538e18acc387275a788fdb36778f to your computer and use it in GitHub Desktop.
Save khapota/5679538e18acc387275a788fdb36778f to your computer and use it in GitHub Desktop.
Letencrypt create with current web server
# need to setup dns of your domain first
# cert will be stored in /etc/letencrypt
# renew command without --force-renew will not get new certificate if old certificate has long live til expired
./letsencrypt-auto certonly --webroot -w /usr/share/nginx/www -d domain.com --email phankhanh@gmail.com --agree-tos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment