Skip to content

Instantly share code, notes, and snippets.

@gtrabanco
Last active June 16, 2017 16:10
Show Gist options
  • Save gtrabanco/49e939a97c02a445a79da0d744860878 to your computer and use it in GitHub Desktop.
Save gtrabanco/49e939a97c02a445a79da0d744860878 to your computer and use it in GitHub Desktop.
Add a domain to letsencrypt without generate a new cert using nginx
#!/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