Skip to content

Instantly share code, notes, and snippets.

@msergo
Forked from ramboldio/runCertbot.sh
Created May 22, 2019 02:05
Show Gist options
  • Select an option

  • Save msergo/e9453d3179a300e203ef42f986e6672e to your computer and use it in GitHub Desktop.

Select an option

Save msergo/e9453d3179a300e203ef42f986e6672e to your computer and use it in GitHub Desktop.
Run Certbot in Docker
#!/bin/bash
# U need this folder to exist
mkdir ~/certs
# authenticate yourself (requires that nothing runs on ports 443 and 80)
docker run --rm -it -v ~/certs:/etc/letsencrypt -p 443:443 certbot/certbot certonly --authenticator standalone
# renewal
docker run --rm -it -v ~/certs:/etc/letsencrypt certbot/certbot renew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment