Skip to content

iddqdiddqd/acme.sh-autorenewal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shellcheck

Cron for SSL/TLS certificate renewal via acme.sh

This shell scipt is intended for usage in /etc/cron.monthly or /etc/cron.weekly scenarios.

Requirements

  1. acme.sh should be installed
  2. web server should be already configured for serving https

Environment variables

  • MONITORING_URL — should be pointing to your cron monitoring webhook (e.g. Cronitor).
  • COMMON_NAME — hostname which the certificate should be issued for.
  • EC_CURVE — private key elliptic curve.

Notes

  1. If you prefer a CA other than LE, go ahead and adjust the sign_csr function, the --server parameter.
  2. In case you plan to use RSA keys, go ahead and adjust the generate_new_key function.
  3. If you use other server than nginx, go ahead and update the restart hooks.
  4. If you are not going to use cron monitoring via webhooks, go ahead and remove the calls from the code.

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages