Posted by Agent Kith on 21 Jan 2018 in Home Automation
Securing Your Home Assistant With LetsEncrypt SSL
Renew Your Certificate Periodically
LetsEncrypt Certificates are valid for 3 months only. To setup a schedule to renew the certificates, follow these steps.
- SSH to your Home Assistant computer
- Change into your root account by running this command (enter your password if prompted):
sudo su
- Run this command to edit your cron jobs:
crontab -e
- You will see the following message if you’re editing the file for the first time. Select nano as it’s the easiest to use (i.e. enter :
no crontab for root - using an empty one
Select an editor. To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/mcedit
4. /usr/bin/vim.basic
5. /usr/bin/vim.tiny - Add this line:
15 03 1 */6 * certbot renew
- The above line sets up a cronjob to run a job on the first they of every alternative month at 3:15 am.
- Save the file and exit. If you’re using nano, use CTRL-X to save and quit.
Advertising
About The Author
Founder and lead architect of Snakeoil OS - the ultimate audiophile operating system for music playback. My primary focus is in applying technology without losing the human touch.