Last active
June 16, 2017 16:10
-
-
Save gtrabanco/49e939a97c02a445a79da0d744860878 to your computer and use it in GitHub Desktop.
Add a domain to letsencrypt without generate a new cert using nginx
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
#!/usr/bin/env bash | |
LETSENCRYPT_BIN="/opt/certbot/certbot-auto | |
$LETSENCRYPT_BIN --expand certonly \ | |
-a webroot --webroot-path=/var/www/letsencrypt \ | |
--agree-tos --staple-ocsp --hsts \ | |
-d previous.domain.example.com \ | |
-d newdomain.example.com,www.newdomain.example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment