Skip to content

Commit

Permalink
Merge pull request #2 from dnmvisser/dv_pysaml-7.1-fix
Browse files Browse the repository at this point in the history
Fix for pysaml 7.1
  • Loading branch information
dnmvisser authored May 31, 2022
2 parents 04afa4c + f9fff6b commit 5d4769c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
4 changes: 2 additions & 2 deletions nagios-check-saml-entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5d4769c

Please sign in to comment.