Browse Source

Lastline verify_ssl option

Helps people with on-prem boxes
pull/368/head
Hendrik 2 years ago
committed by Hendrik
parent
commit
8f9940200b
  1. 3
      misp_modules/modules/expansion/lastline_query.py
  2. 3
      misp_modules/modules/import_mod/lastline_import.py

3
misp_modules/modules/expansion/lastline_query.py

@ -29,6 +29,7 @@ moduleinfo = {
moduleconfig = [
"username",
"password",
"verify_ssl",
]
@ -67,7 +68,7 @@ def handler(q=False):
# Make the API calls
try:
api_client = lastline_api.PortalClient(api_url, auth_data)
api_client = lastline_api.PortalClient(api_url, auth_data, verify_ssl=config.get('verify_ssl', True).lower() in ("true"))
response = api_client.get_progress(task_uuid)
if response.get("completed") != 1:
raise ValueError("Analysis is not finished yet.")

3
misp_modules/modules/import_mod/lastline_import.py

@ -31,6 +31,7 @@ moduleinfo = {
moduleconfig = [
"username",
"password",
"verify_ssl",
]
@ -81,7 +82,7 @@ def handler(q=False):
# Make the API calls
try:
api_client = lastline_api.PortalClient(api_url, auth_data)
api_client = lastline_api.PortalClient(api_url, auth_data, verify_ssl=config.get('verify_ssl', True).lower() in ("true"))
response = api_client.get_progress(task_uuid)
if response.get("completed") != 1:
raise ValueError("Analysis is not finished yet.")

Loading…
Cancel
Save