Skip to content

Instantly share code, notes, and snippets.

@Marqin
Last active June 3, 2016 19:11
Show Gist options
  • Save Marqin/810d5a4ec4362d6bc4173de7a77d6490 to your computer and use it in GitHub Desktop.
Save Marqin/810d5a4ec4362d6bc4173de7a77d6490 to your computer and use it in GitHub Desktop.
DIR=$(mktemp -d)
python -m http.server --bind XXX.XXX.XXX.XXX 8080 &
PID=$!
certbot certonly --webroot $DIR [...]
kill $PID
sleep 0.5
kill -0 $PID && kill -9 $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment