Skip to content

Commit

Permalink
#1130 Fix certification validation
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 28, 2022
1 parent 49adf19 commit d9e6b29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analyzers/VirusTotal/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def __init__(self):
)
self.obs_path = None
self.proxies = self.get_param("config.proxy.https", None)
self.vt = Client(apikey=self.virustotal_key, proxy=self.proxies)
if os.environ.get("REQUESTS_CA_BUNDLE"):
os.environ["SSL_CERT_FILE"] = os.environ["REQUESTS_CA_BUNDLE"]
self.vt = Client(apikey=self.virustotal_key, proxy=self.proxies, verify_ssl=None, trust_env=True)

def get_file(self, hash):
self.obs_path = "{}/{}".format(tempfile.gettempdir(), hash)
Expand Down

0 comments on commit d9e6b29

Please sign in to comment.