mirror of https://github.com/MISP/misp-modules
Update assemblyline_submit.py
parent
6f5c77ef08
commit
2832466f7f
|
@ -16,12 +16,12 @@ def parse_config(apiurl, user_id, config):
|
|||
error = {"error": "Please provide your AssemblyLine API key or Password."}
|
||||
if config.get('apikey'):
|
||||
try:
|
||||
return Client(apiurl, apikey=(user_id, config['apikey']))
|
||||
return Client(apiurl, apikey=(user_id, config['apikey']), verify=config['verifyssl'])
|
||||
except ClientError as e:
|
||||
error['error'] = f'Error while initiating a connection with AssemblyLine: {e.__str__()}'
|
||||
if config.get('password'):
|
||||
try:
|
||||
return Client(apiurl, auth=(user_id, config['password']))
|
||||
return Client(apiurl, auth=(user_id, config['password']), verify=config['verifyssl'])
|
||||
except ClientError as e:
|
||||
error['error'] = f'Error while initiating a connection with AssemblyLine: {e.__str__()}'
|
||||
return error
|
||||
|
|
Loading…
Reference in New Issue