Skip to content

Commit

Permalink
show also SHA256 fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 30, 2014
1 parent e744c0e commit 94ca294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/data/registration/certificate_summary.erb
Expand Up @@ -80,5 +80,8 @@ textdomain "registration"

<% # label followed by the certificate SHA1 sum (in HEX format, e.g. AB:CD:42:FF...)
%>
<b><%= _("SHA1 Fingerprint:") %></b> <%= h(OpenSSL::Digest::SHA1.new(@certificate.to_der).to_s.upcase.scan(/../).join(':')) %>
<b><%= _("SHA1 Fingerprint:") %></b> <%= h(::SUSE::Connect::SSLCertificate.sha1_fingerprint(@certificate)) %>
<% # label followed by the certificate SHA256 sum (in HEX format, e.g. AB:CD:42:FF...)
%>
<b><%= _("SHA256 Fingerprint:") %></b> <%= h(::SUSE::Connect::SSLCertificate.sha256_fingerprint(@certificate)) %>
</p>

0 comments on commit 94ca294

Please sign in to comment.