Skip to content

Instantly share code, notes, and snippets.

@patmandenver
Created September 14, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save patmandenver/bc0d35de0fb307f9c7542d8ccdaa8b86 to your computer and use it in GitHub Desktop.
Save patmandenver/bc0d35de0fb307f9c7542d8ccdaa8b86 to your computer and use it in GitHub Desktop.
Letsencrypt example
#!/bin/bash
#
# Put in your email and your actual domain name
# Server is for staging/testing not getting live certs
sudo letsencrypt certonly \
--server https://acme-staging.api.letsencrypt.org/directory \
--webroot --webroot-path "/usr/share/nginx/html/" \
--keep-until-expiring \
--text \
-v \
--email yourname@example.com \
--agree-tos \
-d yourdomain.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment