From 5438f7f0893b117bca77885077fd4a5d01b7029d Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 7 Mar 2021 14:04:35 +0100 Subject: [PATCH] Remove CA certificate statistics The CA certificate statistics do not work with recent Python versions and broke the plugin initialization. Fixes #2 --- check_xmppng | 8 -------- 1 file changed, 8 deletions(-) diff --git a/check_xmppng b/check_xmppng index 6987c61..8ee96d1 100755 --- a/check_xmppng +++ b/check_xmppng @@ -335,14 +335,6 @@ class Xmpp(nagiosplugin.Resource): context.load_verify_locations(**kwargs) else: context.load_default_certs() - stats = context.cert_store_stats() - if stats['x509_ca'] == 0: - _LOG.info( - "tried to load CA certificates from default locations, but" - " could not find any CA certificates.") - raise XmppException('no CA certificates found') - else: - _LOG.debug('certificate store statistics: %s', stats) return context def initiate_tls(self):