Skip to content

Instantly share code, notes, and snippets.

@diegofcornejo
Last active February 14, 2022 21:40
Show Gist options
  • Save diegofcornejo/d65ce6c82eca383ec2a697f7226503ea to your computer and use it in GitHub Desktop.
Save diegofcornejo/d65ce6c82eca383ec2a697f7226503ea to your computer and use it in GitHub Desktop.
Generate Letsencrypt cert using Docker certbot image in manual mode
# 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