to setup a cron to automate the renewal task, check:
How to setup letsencrypt renewal as an automated task in linux