-
-
Save yangvipguang/32bcbc0d74e9cc46d70f6262dc739292 to your computer and use it in GitHub Desktop.
Letsencrypt example
This file contains 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