<% {status, response} = client.key_establishment_response %> <%= if (status == :ok) do %> <% else %> <% end %>
NTS-KE Server Status Algorithm Cookies Cookie Length NTP Host NTP Port Certificate Expiration Last Check
<%= client.server.host %>:<%= client.server.port %> <%= status %> <% aead_algorithm = Enum.at(response.aead_algorithms, 0) %> <%= KeyEstablishmentResponse.aead_algorithm_to_id(aead_algorithm) %> <%= aead_algorithm %> <%= length(response.cookies) %> <%= 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)%> <%= client.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ") %> <%= client.server.host %>:<%= client.server.port %> <%= status %> <%= response %> - - - - - - <%= client.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ") %>