Skip to content

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

Fixed Windows-specific issue with date handling.

smicallefb60634998ab9
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.py
index ba9f707a..dd624779 100644
--- a/modules/sfp_sslcert.py
+++ b/modules/sfp_sslcert.py
@@ -142,9 +142,9 @@ class sfp_sslcert(SpiderFootPlugin):
# Check if the expiration date is in the future
def checkExpiry(self, cert, sevt):
- exp = int(cert.get_not_after().get_datetime().strftime("%s"))
+ exp = int(time.mktime(cert.get_not_after().get_datetime().timetuple()))
expstr = cert.get_not_after().get_datetime().strftime("%Y-%m-%d %H:%M:%S")
- now = int(time.strftime("%s"))
+ now = int(time.time())
warnexp = now + self.opts['certexpiringdays'] * 86400
if exp <= now: