Skip to content

Commit

Permalink
Fixes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Aug 25, 2017
1 parent 4e6cd23 commit 75a72bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ def __init__(self, url, key, ssl=True, name='Unnamed'):
if type(url) is list:
for idx, server in enumerate(url):
verify = True
if os.path.isfile(ssl[idx]):
verify = ssl[idx]
if isinstance(ssl, list):
if os.path.isfile(ssl[idx]):
verify = ssl[idx]
elif isinstance(ssl, str):
if os.path.isfile(ssl):
verify = ssl
elif isinstance(ssl, bool):
verify = ssl
self.misp_connections.append(pymisp.PyMISP(url=server,
key=key[idx],
ssl=verify))
Expand Down

0 comments on commit 75a72bf

Please sign in to comment.