Creating Script
Create the script file:Making Script Executable
The script adds a cert_renewal.log file to the directory where you run it, and you can monitor execution logs from here.
Scheduled Execution (Cron)
You can ensure the script runs at a specific time or time period if desired. Cron can be used for this:In the example usage, the script will run on the 1st day of each month at 23:59.

