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