Skip to content

How do you automate certificate renewals with the certbot Docker image? #3917

Answered by polarathene
vahidalvandi asked this question in Q&A
Discussion options

You must be logged in to vote

in this link https://eff-certbot.readthedocs.io/en/latest/using.html#automated-renewals after run
SLEEPTIME=$(awk 'BEGIN{srand(); print int(rand()*(3600+1))}'); echo "0 0,12 * * * root sleep $SLEEPTIME && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null return unable to resolve host email-server: Name or service not known

That is advice for the certbot command if you have it installed locally without a Docker container.

You would need to have successfully provisioned the certificate on the host system instead for that to work.


please show how i can run top renew in crontab

You can configure a systemd timer or cron job to perform the docker run command (that uses the certbot c…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ddbreyer
Comment options

@gift-sequoiaat
Comment options

Answer selected by polarathene
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@polarathene
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/question Someone asked a question - feel free to answer area/documentation
5 participants