Skip to content

Instantly share code, notes, and snippets.

@yangvipguang
Forked from patmandenver/letsencrypt.sh
Created November 24, 2016 16:43
Show Gist options
  • Save yangvipguang/32bcbc0d74e9cc46d70f6262dc739292 to your computer and use it in GitHub Desktop.
Save yangvipguang/32bcbc0d74e9cc46d70f6262dc739292 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 [email protected] \
--agree-tos \
-d yourdomain.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment