Skip to content

A simple website certificate monitor tool

License

Notifications You must be signed in to change notification settings

ytpay/certmonitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

certmonitor

A simple website certificate monitor tool

How to use?

For general user

You can download the pre-compiled binaries for the corresponding platform from release page. Next create a configuration file named certmonitor.yaml, like this:

alarm:
- type: smtp
  targets:
  - your_email_address
monitor:
  websites:
  - https://google.com
  cron: '@every 10s'
  beforetime: 168h0m0s
smtp:
  username: your_email_address
  password: "password"
  from: your_email_address
  server: "smtp_server:465"

Finally run it(Suppose the file you downloaded is named certmonitor_linux_amd64):

chmod +x certmonitor_linux_amd64
./certmonitor_linux_amd64

For docker user(Advanced)

build docker image

export version=v1.0.1
make docker

create a config named certmonitor.yaml

alarm:
- type: smtp
  targets:
  - your_email_address
monitor:
  websites:
  - https://google.com
  cron: '@every 10s'
  beforetime: 168h0m0s
smtp:
  username: your_email_address
  password: "password"
  from: your_email_address
  server: "smtp_server:465"

run a container

docker run -dt --name cermonitor -v ./certmonitor.yaml:/certmonitor.yaml ytpay/certmonitor:v1.0.1

About

A simple website certificate monitor tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.2%
  • Makefile 6.8%
  • Dockerfile 3.0%