From 600ef58aa0a174509d0e75f38e8233d60a2fe873 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 16 Aug 2012 10:51:37 +0000 Subject: [PATCH] Don't check whether cert:digest succeeded. The digest isn't something stored in the cert that may or may not be present; it is calculated locally. --- scripts/ssl-known-key.nse | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/ssl-known-key.nse b/scripts/ssl-known-key.nse index 38d4797d9..50ad9fbfd 100644 --- a/scripts/ssl-known-key.nse +++ b/scripts/ssl-known-key.nse @@ -125,10 +125,6 @@ action = function(host, port) stdnse.print_debug(2, "sslcert.getCertificate error: %s", cert) end local fingerprint = cert:digest("sha1") - if not fingerprint then - stdnse.print_debug(2, "Certificate does not have a SHA-1 fingerprint.") - return - end local fingerprint_fmt = stdnse.tohex(fingerprint, {separator=" ", group=4}) -- Check SSL fingerprint against database.