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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user