1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-03 12:06:35 +00:00

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.
This commit is contained in:
david
2012-08-16 10:51:37 +00:00
parent 1ba18b4a39
commit 600ef58aa0

View File

@@ -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.