mirror of https://github.com/MISP/MISP
Allow SSL verification to be disabled with config
Allow SSL verification to be disabled with config. If I understand this right this will need to be scheduled with a cronjob if the expiration framework is wanted?pull/4877/head
parent
a8e66b50aa
commit
d88369a7de
|
@ -7,7 +7,7 @@ from pymisp import PyMISP, MISPEvent
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
import re
|
import re
|
||||||
from keys import misp_url, misp_key
|
from keys import misp_url, misp_key, misp_verifycert
|
||||||
|
|
||||||
# pip install pymisp python-dateutil
|
# pip install pymisp python-dateutil
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class misphelper(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.misp = PyMISP(url=misp_url,
|
self.misp = PyMISP(url=misp_url,
|
||||||
key=misp_key,
|
key=misp_key,
|
||||||
ssl=True,
|
ssl=misp_verifycert,
|
||||||
out_type="json")
|
out_type="json")
|
||||||
self.taxonomyId = self.searchTaxonomy()
|
self.taxonomyId = self.searchTaxonomy()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue