Created
September 14, 2016 20:16
-
-
Save patmandenver/bc0d35de0fb307f9c7542d8ccdaa8b86 to your computer and use it in GitHub Desktop.
Letsencrypt example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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