From 610ba8d27ab23ed380e4c304d5cb15ddb2521be3 Mon Sep 17 00:00:00 2001 From: Didier 'OdyX' Raboud Date: Mon, 8 May 2023 16:38:01 +0200 Subject: [PATCH] ssl_cert: drop now-unsupported --altnames Fixes https://github.com/Icinga/icinga2/issues/9661 --- doc/10-icinga-template-library.md | 1 - itl/plugins-contrib.d/web.conf | 4 ---- 2 files changed, 5 deletions(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 5100f582a..c09ddf664 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -5785,7 +5785,6 @@ ssl_cert_file | **Optional.** Local file path. Works only if `ss ssl_cert_warn | **Optional.** Minimum number of days a certificate has to be valid. ssl_cert_critical | **Optional.** Minimum number of days a certificate has to be valid to issue a critical status. ssl_cert_cn | **Optional.** Pattern to match the CN or AltName of the certificate. -ssl_cert_altnames | **Optional.** Matches the pattern specified in -n with alternate ssl_cert_issuer | **Optional.** Pattern to match the issuer of the certificate. ssl_cert_org | **Optional.** Pattern to match the organization of the certificate. ssl_cert_email | **Optional.** Pattern to match the email address contained in the certificate. diff --git a/itl/plugins-contrib.d/web.conf b/itl/plugins-contrib.d/web.conf index c2739c071..4c52fdb94 100644 --- a/itl/plugins-contrib.d/web.conf +++ b/itl/plugins-contrib.d/web.conf @@ -400,10 +400,6 @@ object CheckCommand "ssl_cert" { value = "$ssl_cert_cn$" description = "Pattern to match the CN or AltNames of the certificate" } - "--altnames" = { - set_if = "$ssl_cert_altnames$" - description = "Matches the pattern specified in -n with alternate" - } "-i" = { value = "$ssl_cert_issuer$" description = "Pattern to match the issuer of the certificate"