Sign inSign up

lmnetworks/new_ssl_detector

By lmnetworks

•Updated almost 8 years ago

Detect and send email if a new ssl cert has been released.

Image
0

1.7K

lmnetworks/new_ssl_detector repository overview

⁠New ssl cert detector

Detect and send email if a new ssl cert has been released.

⁠QuickStart

  1. Write configuration in config.sql
INSERT INTO domains VALUES ('domain1.tld', '[email protected]', strftime('%s', 'now'));
INSERT INTO domains VALUES ('%25domain2.tld', '[email protected]', strftime('%s', 'now'));

INSERT INTO config VALUES ('subject','Nuovo certificato SSL');
INSERT INTO config VALUES ('msg_from','Email@from');
INSERT INTO config VALUES ('smtp_host','');
INSERT INTO config VALUES ('smtp_user','');
INSERT INTO config VALUES ('smtp_password','');
INSERT INTO config VALUES ('text','# É stato rilasciato un certificato per il tuo dominio

Dominio <strong>{}</strong>, rilasciato il <strong>{}</strong>

Guarda pi&ugrave; info [{}]({}) e assicurati che il certificato 
sia stato richesto dal vostro IT.
');

INSERT INTO config VALUES ('style','<style>
h1 {
  color: #red;
}
</style>');

  1. Create database
sqlite3 data.db < db_schema.sql
sqlite3 data.db < config.sql
  1. Run docker
docker run --rm -v `pwd`/data.db lnmentworks/new_ssl_detector
  1. Put in crontab

Tag summary

Content type

Image

Digest

Size

30.9 MB

Last updated

almost 8 years ago

docker pull lmnetworks/new_ssl_detector