Matty9191 / ssl-cert-check

Send notifications when SSL certificates are about to expire.
GNU General Public License v2.0
721 stars 286 forks source link

Please change -v or -V to output script version #43

Closed wowcut closed 5 years ago

wowcut commented 5 years ago

Besides looking into the source I do not see any possibility of getting the version number of this script. It is good practice for unix tools to provide a -v or -V option that will print out the version number. This is needed e.g. when older versions of the script have errors and you want to check if the newest version is available, when using this script from your own scripts. E.g. any version below 1.31 gave wrong results for SNI domains, but are still in many distros, what increases the possibility that on different distros you get wrong results for an ssl expiry check. I am using a small wrapper for that to workaround this bug. Thanks.

Matty9191 commented 5 years ago

You can print the version now with "-V":

$ ssl-cert-check -V 4.1