sensu-plugins / sensu-plugins-http

This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
http://sensu-plugins.io
MIT License
30 stars 97 forks source link

check-https-cert.rb does not expose "verify_depth" for validating full certificate chain #189

Open brubin86 opened 2 years ago

brubin86 commented 2 years ago

See similar PR for sensu-plugins-ssl: https://github.com/sensu-plugins/sensu-plugins-ssl/pull/66

A flag to set "verify_depth" on the http instance would allow users to indicate they prefer checking parts of the certificate chain above just the leaf certificate:

https://github.com/sensu-plugins/sensu-plugins-http/blob/master/bin/check-https-cert.rb#L89