mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Formatted TLS version (#6462)
This commit is contained in:
parent
8a3360bd51
commit
8cb1a6fc28
2 changed files with 6 additions and 9 deletions
|
|
@ -4843,7 +4843,6 @@ function addTLSInfoToAlertDescr(msg, alert_json)
|
|||
local tls_info = format_tls_info({ notBefore = alert_json["proto"]["tls"]["notBefore"],
|
||||
notAfter = alert_json["proto"]["tls"]["notAfter"],
|
||||
client_requested_server_name = alert_json["proto"]["tls"]["client_requested_server_name"],
|
||||
version = alert_json["proto"]["tls"]["version"],
|
||||
['ja3.server_unsafe_cipher'] = alert_json["proto"]["tls"]["ja3.server_unsafe_cipher"] })
|
||||
|
||||
if tls_info["notBefore"] and tls_info["notAfter"] then
|
||||
|
|
@ -4854,10 +4853,6 @@ function addTLSInfoToAlertDescr(msg, alert_json)
|
|||
msg = msg .. string.format(" [ %s: %s - %s ]", i18n("flow_details.tls_certificate_validity"), tls_info["flow_details.tls_certificate_validity"])
|
||||
end
|
||||
|
||||
if tls_info["version"] then
|
||||
msg = msg .. string.format(" [ %s: %s ]", i18n("flow_details.tls_version"), tls_info["version"])
|
||||
end
|
||||
|
||||
if tls_info["ja3.server_unsafe_cipher"] then
|
||||
msg = msg .. string.format(" [ %s: %s ]", i18n("ja3.server_unsafe_cipher"), tls_info["ja3.server_unsafe_cipher"])
|
||||
end
|
||||
|
|
@ -5114,10 +5109,12 @@ function format_tls_info(tls_info)
|
|||
|
||||
if tls_info.notBefore and tls_info.notAfter then
|
||||
tls_info["tls_certificate_validity"] = string.format("%s - %s", tls_info.notBefore, tls_info.notAfter)
|
||||
tls_info.notBefore = nil
|
||||
tls_info.notAfter = nil
|
||||
end
|
||||
|
||||
if tls_info.version then
|
||||
tls_info["tls_version"] = tls_info.version
|
||||
if tls_info.tls_version then
|
||||
tls_info["tls_version"] = ntop.getTLSVersionName(tls_info.tls_version)
|
||||
end
|
||||
|
||||
if tls_info.client_requested_server_name then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue