From dcc9dfa22adbacaee6ddb57d34424c1beaa0ef0a Mon Sep 17 00:00:00 2001 From: Dick Visser Date: Tue, 31 May 2022 19:06:08 +0200 Subject: [PATCH 1/2] Fix for pysaml 7.1 --- nagios-check-saml-entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nagios-check-saml-entity.py b/nagios-check-saml-entity.py index 6e913d1..47423bc 100755 --- a/nagios-check-saml-entity.py +++ b/nagios-check-saml-entity.py @@ -124,8 +124,8 @@ def nagios_exit(message, code): if args.saml_cert_days: certs = list(set( - mds.certs(entity_id=args.entity, descriptor='any', use='encryption') + - mds.certs(entity_id=args.entity, descriptor='any', use='signing'))) + [mds.certs(entity_id=args.entity, descriptor='any', use='encryption')[0][1]] + + [mds.certs(entity_id=args.entity, descriptor='any', use='signing')[0][1]])) if len(certs) > 0: for i in certs: cert = x509.load_der_x509_certificate(base64.b64decode(i), default_backend()) From f9fff6b02d520193003f1078e65227be211b2ba1 Mon Sep 17 00:00:00 2001 From: Dick Visser Date: Tue, 31 May 2022 19:08:51 +0200 Subject: [PATCH 2/2] docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 91b3230..7a071aa 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ Currently implemented checks: - The validity of the TLS certificate of the Assertion Consumer URL - The validity of the SAML signing/encryption certificate(s) +# Requirements + +* pysaml2 7.1+ + # Usage ```