1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 14:09:02 +00:00

o [NSE] Added reporting of the type and bit size of certificate public

keys to ssl-cert.nse. [Matt Selsky]
This commit is contained in:
david
2010-10-20 05:49:17 +00:00
parent 180066a4aa
commit 877cbab16f
4 changed files with 42 additions and 0 deletions

View File

@@ -113,6 +113,11 @@ action = function(host, port)
lines[#lines + 1] = "Issuer: " .. stringify_name(cert.issuer)
end
if nmap.verbosity() > 0 then
lines[#lines + 1] = "Public Key type: " .. cert.pubkey.type
lines[#lines + 1] = "Public Key bits: " .. cert.pubkey.bits
end
lines[#lines + 1] = "Not valid before: " ..
date_to_string(cert.validity.notBefore)
lines[#lines + 1] = "Not valid after: " ..