Added the --dane option to the command definition ssl_cert#10196
Added the --dane option to the command definition ssl_cert#10196oxzi merged 3 commits intoIcinga:masterfrom
--dane option to the command definition ssl_cert#10196Conversation
75ca700 to
76d1b70
Compare
|
I don't have the slightest idea why the windows tests fail ... very unlikely to have anything to do with the code change. |
oxzi
left a comment
There was a problem hiding this comment.
Thanks for your Pull Request!
I am a bit uncertain about the failing Windows tests at the moment, but these are not related to your change. Please remove the unnecessary repeat_key, otherwise it looks good to me. Thanks!
You are totally right. I missed something up, sorry. Please keep it as it is. Regarding the failing Windows Jobs, it seems the access permissions for the Windows packaging repository were changed. This, however, has nothing to do with your PR. |
76d1b70 to
b63ecfe
Compare
The "--dane" option can be used both as a flag and with an argument. In its current implementation, it is even a special case for flags with variable numbers of arguments. At an Icinga 2 ITL PR by GitHub user @peteeckel, an unexpected behavior was seen when calling check_ssl_cert with "--dane" followed by an empty argument[0], as so: $ ./check_ssl_cert --dane "" If the empty argument was used, the --dane option was effectively useless. This is due to the argument counting/checking code, not expecting an empty second argument, setting DANE="", which disables it. This change allows an empty second argument, which will then be swallowed. For the other options with variable numbers of arguments, this does not seem to apply. [0]: Icinga/icinga2#10196 (comment)
f94aa81 to
ec9e468
Compare
|
I have rebased your PR against the current master to contain all necessary checks to satisfy the auto-merge. |
Perfect, thanks! |

fixes #10195
Added the
ssl_cert_dateoption to thessl_certcommand definition. Values can be an empty string or a specification of the TLSA record type to check (201, 301, 302, or 311).