I am trying to auto update keys via cron

you can try my client: [updated]Simplest pure bash letsencrypt client, support standalone server now