https://github.com/thc2cat/go-check-certs-1
A utility to check validity and expiration dates of SSL certificates remotely , written in Golang.
https://github.com/thc2cat/go-check-certs-1
certificate expiration remote
Last synced: 6 months ago
JSON representation
A utility to check validity and expiration dates of SSL certificates remotely , written in Golang.
- Host: GitHub
- URL: https://github.com/thc2cat/go-check-certs-1
- Owner: thc2cat
- License: bsd-2-clause
- Created: 2021-01-04T11:00:15.000Z (over 5 years ago)
- Default Branch: for_github
- Last Pushed: 2021-06-30T16:19:55.000Z (about 5 years ago)
- Last Synced: 2025-08-03T07:25:56.669Z (12 months ago)
- Topics: certificate, expiration, remote
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-check-certs
Original code from [github.com/timewasted/go-check-certs](https://github.com/timewasted/go-check-certs)
## Modifications
* return codes,
* timeouts,
* verbose options,
* standard output logging
## Usage
```shell
Add TLS services in file Services.txt in the form of hosts.fqdndomain:port
go build
./go-check-certs -days 45 -v
```
### M/monit integration
```shell
#/etc/monit.d/go-check-certs
check program go-check-certs with path "/local/go-check-certs/go-check-certs -hosts /local/go-check-certs/Services.txt -days 31"
every "51-59 8 * * 1-5"
if status > 0 then alert
## https://mmonit.com/monit/documentation/monit.html
## See special remarks on cron :
# ==> Therefor we strongly recommend to use an asterix
# in the minute field or at minimum a range, e..g. 0-15.
# Never use a specific minute as Monit may not run on that minute.
#
```