From 7226742a6b5e7ef84feb2847717210ec8777debc Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Sat, 1 Jun 2024 10:47:12 -0400 Subject: [PATCH] Add NTP information to table --- lib/chronoscope_web/live/index_live.html.heex | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/chronoscope_web/live/index_live.html.heex b/lib/chronoscope_web/live/index_live.html.heex index 319e135..c7c5e58 100644 --- a/lib/chronoscope_web/live/index_live.html.heex +++ b/lib/chronoscope_web/live/index_live.html.heex @@ -3,7 +3,7 @@ - Host + NTS-KE Server Status @@ -17,6 +17,12 @@ Cookie Length + + NTP Host + + + NTP Port + Certificate Expiration @@ -38,6 +44,7 @@ <% aead_algorithm = Enum.at(response.aead_algorithms, 0) %> + <%= KeyEstablishmentResponse.aead_algorithm_to_id(aead_algorithm) %> @@ -51,6 +58,12 @@ <%= response.cookie_length %> + + <%= Map.get(response, :server, "-") %> + + + <%= Map.get(response, :port, "-") %> + <%= response.cert_expiration |> DateTime.from_iso8601 |> then(fn {:ok, dt, _} -> Calendar.strftime(dt, "%Y-%m-%d %H:%M:%SZ") end)%> @@ -74,7 +87,8 @@ - - - - + - + - <%= server.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ")