fix: [connection] fixes #39 thanks to @andurin

pull/40/head
Christophe Vandeplas 2020-07-14 17:04:44 +02:00
parent df4d92b447
commit c11da6661e
No known key found for this signature in database
GPG Key ID: BDC48619FFDC5A5B
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class MISPConnection():
misp_key = parameters['mispkey'].value
except AttributeError:
raise MaltegoException("ERROR: mispurl and mispkey need to be set to something valid")
self.misp = PyMISP(misp_url, misp_key, misp_verify, 'json', misp_debug, tool='misp_maltego', timeout=(2, 60))
self.misp = PyMISP(url=misp_url, key=misp_key, ssl=misp_verify, debug=misp_debug, tool='misp_maltego', timeout=(2, 60))
except Exception:
if is_local_exec_mode():
raise MaltegoException("ERROR: Cannot connect to MISP server. Please verify your MISP_Maltego.conf settings.")