Last active
February 14, 2022 21:40
-
-
Save diegofcornejo/d65ce6c82eca383ec2a697f7226503ea to your computer and use it in GitHub Desktop.
Generate Letsencrypt cert using Docker certbot image in manual mode
This file contains 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
# Pull docker certbot image | |
docker pull certbot/certbot | |
# Create a dir for mount in containers, and save letsencrypt folders | |
mkdir letsencrypt # or any name you want | |
# Run a container and follow the instructions | |
docker run -it --rm -v "$PWD"/letsencrypt:/etc/letsencrypt certbot/certbot certonly --manual -d yourdomain.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment