mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixed TLS certificate validity and HTTP server name copy
This commit is contained in:
parent
0baf646cb5
commit
eabf70b5b9
1 changed files with 7 additions and 6 deletions
|
|
@ -4845,12 +4845,8 @@ function addTLSInfoToAlertDescr(msg, alert_json)
|
|||
client_requested_server_name = alert_json["proto"]["tls"]["client_requested_server_name"],
|
||||
['ja3.server_unsafe_cipher'] = alert_json["proto"]["tls"]["ja3.server_unsafe_cipher"] })
|
||||
|
||||
if tls_info["notBefore"] and tls_info["notAfter"] then
|
||||
msg = msg .. string.format(" [ %s: %s - %s ]", i18n("flow_details.tls_certificate_validity"), tls_info["notBefore"], tls_info["notAfter"])
|
||||
end
|
||||
|
||||
if tls_info["flow_details.tls_certificate_validity"] then
|
||||
msg = msg .. string.format(" [ %s: %s - %s ]", i18n("flow_details.tls_certificate_validity"), tls_info["flow_details.tls_certificate_validity"])
|
||||
if tls_info["tls_certificate_validity"] then
|
||||
msg = msg .. string.format(" [ %s: %s ]", i18n("tls_certificate_validity"), tls_info["tls_certificate_validity"])
|
||||
end
|
||||
|
||||
if tls_info["ja3.server_unsafe_cipher"] then
|
||||
|
|
@ -5108,6 +5104,7 @@ function format_tls_info(tls_info)
|
|||
end
|
||||
|
||||
if tls_info.notBefore and tls_info.notAfter then
|
||||
tprint(tls_info)
|
||||
tls_info["tls_certificate_validity"] = string.format("%s - %s", tls_info.notBefore, tls_info.notAfter)
|
||||
tls_info.notBefore = nil
|
||||
tls_info.notAfter = nil
|
||||
|
|
@ -5157,6 +5154,10 @@ function format_http_info(http_info)
|
|||
http_info["last_url"] = i18n("external_link_url", { url = http_info["last_url"], url_name = http_info["last_url"]})
|
||||
end
|
||||
|
||||
if http_info["server_name"] then
|
||||
http_info["server_name"] = i18n("copy_button", { full_name = http_info["server_name"], name = shortenString(http_info["server_name"], 32)})
|
||||
end
|
||||
|
||||
return http_info
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue