mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
1ba18b4a39
commit
600ef58aa0
1 changed files with 0 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue