Skip to content

Instantly share code, notes, and snippets.

@emtudo
Created December 30, 2016 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emtudo/f35b7e9e09eac96c5ae4b5db39ecd250 to your computer and use it in GitHub Desktop.
Save emtudo/f35b7e9e09eac96c5ae4b5db39ecd250 to your computer and use it in GitHub Desktop.
#!/bin/bash
DIR="/DIRETORIO_ROOT_DO_SEU_SITE"
EMAIL="SEU-EMAIL@SEU-DOMINIO.COM"
DOMINIO="SEU-DOMINIO.COM"
sudo ./certbot-auto certonly --webroot --webroot-path \
${DIR} \
--renew-by-default --email ${EMAIL} --text --agree-tos \
-d ${DOMINIO} \
-d www.${DOMINIO}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment