f5devcentral / lets-encrypt-python

47 stars 12 forks source link

Move env variables to config files for multiple cert processing #9

Closed ScottECampbell closed 1 year ago

ScottECampbell commented 1 year ago

Hello Jason,

I've cleaned up my edits. Two new files, one required, one example only.

I've moved all the env variables to files and added the ability to have it run for a multiple number of domains/certificates. Currently it runs nightly and has a mixture of single domain certificates and SAN certificates without issues.

In my environment I needed a python virtual environment so I've provided an example cron_wrapper file.

Please let me know if anything is unclear or needs more explanation.

Scott Campbell

ScottECampbell commented 1 year ago

Sorry about leaving the session_verify variable in there - I tried to pull out everything I had done to make it work in my environment except the necessary changes required.

I'm not a fan of the credential files either but since this is automated and runs from cron nightly it needs to pull the credentials from somewhere. I keep the file only accessible by the user. It could be moved to a shared key system but then there would be a little extra setup to get it running.