A simple Go TLS certificate checker
$ ./cert-check
Usage:
-d="google.com": domain name to alert on
-n=30: Number of days to alert on. Only print if this is triggered.
-v=false: always print number of days until expiration
$ ./cert-check -d google.com
$ ./cert-check -d google.com -v
domain: google.com, issued by: [GeoTrust Inc.] expires in: 89 days
$ ./cert-check -d google.com -v -n 100
domain: google.com, issued by: [GeoTrust Inc.] expires in: 89 days
$ echo $?
1