matteocorti / check_ssl_cert

A shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection.
GNU General Public License v3.0
371 stars 132 forks source link

Option --debug-headers doesn't always work #514

Closed robertbruntz closed 4 months ago

robertbruntz commented 4 months ago

Describe the bug

Running check_ssl_cert from Bash with the "--debug-headers" flag ("Store the retrieved HTLM headers in the headers.txt file") does not always produce the expected headers.txt file. E.g., "./check_ssl_cert --debug-headers -H github.com" does not produce the file, whereas "./check_ssl_cert --debug-headers --all-local -H github.com" does produce the file. I have not tested many other flags to see which ones do and do not cause file production. "--all-local" does; "-v" does not.

To Reproduce

  1. Clone the repo
  2. Run "./check_ssl_cert --debug-headers -H github.com"; should not produce headers.txt
  3. Run "./check_ssl_cert --debug-headers --all-local -H github.com"; should produce headers.txt (with the HTTP response headers from github.com)

Expected behavior

Running check_ssl_cert with the --debug-headers flag should always produce headers.txt

System (please complete the following information):

Additional context/output

(none)