This bash script is very useful to update your SSL certificate on letsencrypt.
Your SSL certificate will be updated 1 day before expired. Feel free to copy or modify this script
Put this script using crontab. Ensure that you setup this script will be running on daily basis