Remove CA certificate statistics
The CA certificate statistics do not work with recent Python versions and broke the plugin initialization. Fixes #2
This commit is contained in:
parent
76fbb73233
commit
5438f7f089
1 changed files with 0 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue