Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ssl-certificate-expiry to allow legacy renegotiation #1340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/ssl/ssl-certificate-expiry
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ To set warning and critical levels do like this:
env.proxy PROXYHOST:PORT # optional, enables openssl operation over proxy
env.checkname yes # optional, checks if used servername is covered by certificate
env.skip_cert_hashes 2e5ac55d # optional, skip check of certs with those hashes (2e5ac55d is DST Root CA X3, cross-signing Let's Encrypt certs, but expiring on 2021-09-30)
env.legacy_renegotiation yes # optional, allow unsafe renegotiation when connecting to older systems.

Alternatively, if you want to monitor hosts separately, you can create multiple symlinks named as follows.

Expand Down Expand Up @@ -136,6 +137,7 @@ print_expire_days() {
[ -n "$starttls" ] && s_client_args="$s_client_args -starttls $starttls"
[ -n "${proxy:-}" ] && s_client_args="$s_client_args -proxy $proxy"
[ -n "${checkname:-}" ] && [ "$checkname" = "yes" ] && s_client_args="$s_client_args -verify_hostname $host"
[ -n "${legacy_renegotiation:-}" ] && [ "$legacy_renegotiation" = "yes" ] && s_client_args="$s_client_args -legacy_renegotiation"

# We extract and check the server certificate,
# but the end date also depends on intermediate certs. Therefore
Expand Down