-
-
Save msergo/e9453d3179a300e203ef42f986e6672e to your computer and use it in GitHub Desktop.
Run Certbot in Docker
This file contains hidden or 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
| #!/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