Skip to content

Instantly share code, notes, and snippets.

@Eduard-gan
Last active November 4, 2018 10:50
Show Gist options
  • Save Eduard-gan/dc03d8af2e62afb48839964ad1565869 to your computer and use it in GitHub Desktop.
Save Eduard-gan/dc03d8af2e62afb48839964ad1565869 to your computer and use it in GitHub Desktop.
Certbot in docker
# This will temporairly create /var/novk/ssl/.well-known/xxxxxx confirmation file and trigger
# external check of it's availiblty and contents from letsencrypt's authority servers.
# This directory simply should be served by some http server when container launches
# This container isn't designed to be persistent and it will exit and removed once command will finish.
# You may simply add it into your crontab
docker run -it --rm --name certbot \
-v /var/novk/ssl:/var/novk/ssl \
-v /etc/letsencrypt:/etc/letsencrypt \
certbot/certbot:latest \
certonly --agree-tos --no-eff-email --email [email protected] --webroot -w /var/novk/ssl -d novk.ga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment