Skip to content

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

Bug fixes.

Steveb73b9e704eec
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.py
index 2b895a6c..0111c917 100644
--- a/modules/sfp_sslcert.py
+++ b/modules/sfp_sslcert.py
@@ -111,7 +111,10 @@ class sfp_sslcert(SpiderFootPlugin):
self.getIssued(m2cert, event)
self.getIssuer(m2cert, event)
self.checkHostMatch(m2cert, fqdn, event)
- self.checkExpiry(m2cert, event)
+ try:
+ self.checkExpiry(m2cert, event)
+ except M2Crypto.X509.X509Error as e:
+ self.sf.error("Error processing certificate: " + str(e), False)
# Report back who the certificate was issued to
def getIssued(self, cert, sevt):
diff --git a/sflib.py b/sflib.py
index 4cf10389..d3b8de30 100644
--- a/sflib.py
+++ b/sflib.py
@@ -369,6 +369,7 @@ class SpiderFoot:
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
def hashstring(self, string):
+ s = string
if type(string) in [list, dict]:
s = str(string)
if type(string) != unicode: