Résultats pour <%= @host %> (<%= l @result.date %>) <%= rank_label @result.score.rank %>

<% if Time.now - @result.date >= Rails.configuration.refresh_delay %>
<%= link_to 'Rafraîchir', {action: :refresh}, class: %i(btn btn-default) %>
<% end %>

<% scores = @result.score.details %> <% { 'Protocole' => 'protocol', 'Échange de clef' => 'key_exchange', 'Chiffrement' => 'cipher_strengths', 'Total' => 'score'}.each do |name, v| %> <% end %>
Scores <%= rank_label @result.score.rank %>
<%= name %> <%= score_progress scores[v] %>
<% { 'Bonnes pratiques' => ['success', 'success'], 'Alertes' => ['warning', 'warning'], 'Erreurs' => ['error', 'danger'] }.each do |name, v| %> <% end %>
Protocoles <%= protocol_labels @result.protocols %>
Clefs

Certificat : <%= key_label @result[:key] %>

Diffie Hellman : <%= key_labels @result.dh %>

<%= name %> <% item, color = v (@result.score[item] || []).each do |item| %> <%= item.upcase %> <% end %>
<% %w(TLSv1_2 TLSv1_1 TLSv1 SSLv3 SSLv2).each do |protocol| ciphers = @result.ciphers.select { |c| c.protocol == protocol } .sort { |a, b| -1 * (a['size'] <=> b['size']) } unless ciphers.empty? %> <% ciphers.each do |cipher| %> <% end end end %>
Algorithme Clef DH
<%= protocol_label protocol %>
<%= cipher.name %> <%= cipher_size_label cipher %> <%= key_label cipher.dh if cipher.dh %> <%= cipher_labels cipher %>