Keep track of your certificates.
How to check certificates status using checkcrt.py with chronjob
- A free Mailgun account mailgun.com
- Server running unix dist
- Download the source
wget -q https://github.com/ostseb/checkcrt/archive/master.zip
- Unzip the tarball
unzip -q master.zip
- Install requirements
cd checkcrt-master/
pip install -r requirements.txt
- Configure your .env file. See .env for more information
- Test your config
python checkcrt.pyorpython checkcrt.py email - Set up cron
Run
crontab -eand add12 20 * * 3 python /path/to/script/checkcrt.py email
CHECKCRT_MAILGUN_SENDER="domain.tld"
CHECKCRT_MAILGUN_TOKEN="key-xxx"
CHECKCRT_MAILGUN_FROM="Checkcrt<noreply@domain.tld>"
CHECKCRT_MAILGUN_TO="you@domain.tld,cto@domain.tld"
CHECKCRT_SITES="www.subbrand.tld,/www/api.brand.tld"
/www/api.brand.tld - This will scan:
- brand.tld
- www.brand.tld
- api.brand.tld
www/store/api.brand.tld - This will scan:
- www.brand.tld
- store.brand.tld
- api.brand.tld