Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Add check for response content

bcoles23dc175abd38
diff --git a/modules/sfp_crt.py b/modules/sfp_crt.py
index 21d68124..f9bff637 100644
--- a/modules/sfp_crt.py
+++ b/modules/sfp_crt.py
@@ -147,6 +147,10 @@ class sfp_crt(SpiderFootPlugin):
timeout=30,
useragent=self.opts['_useragent'])
+ if res['content'] is None:
+ self.sf.info("Error retrieving certificate with ID " + str(cert_id))
+ continue
+
try:
cert = self.sf.parseCert(str(res['content']))
except BaseException as e: