Skip to content

Renew Let's Encrypt certificates with cron on debian / ubuntu

Notifications You must be signed in to change notification settings

skuti-is/certbotRenew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

certbotRenew

Renew Let's Encrypt certificates with cron on debian / ubuntu

features

  • Clones fresh certbot from github.
  • Checks if there are certificates to renew and exits if there is nothing to do. (quick an quiet)
  • Only if certificates are due, run certbot
  • Check for nginx and/or apache are installs and reload configuration
  • Only report on errors

usage

Copy certbotRenew to /usr/local/sbin/

Make it executable

Run manualy to install git and pull down fresh version of certbot-auto to /opt/certbot/

wget -qO /usr/local/sbin/certbotRenew https://raw.githubusercontent.com/skuti-is/certbotRenew/master/certbotRenew
chmod +x /usr/local/sbin/certbotRenew
certbotRenew

Add your first certificate

certbot certonly --webroot -w <docRoot> -d <domain> [-d domainalias>]

Update webserver config, your own way, to include certificates.

Add to daily cron

tested

on ubuntu 16.04, 18.04, 20.04 and should work on most debian based systems.

About

Renew Let's Encrypt certificates with cron on debian / ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages