-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
161 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<% | ||
=begin the textdomain for y2makepot | ||
textdomain "registration" | ||
=end | ||
%> | ||
<% # dialog heading | ||
%> | ||
<h2><%= _("Secure Connection Error") %></h2> | ||
|
||
<p> | ||
<%= _("Error: %s") % h(Storage::SSLErrors.instance.ssl_error_msg) %> | ||
</p> | ||
|
||
<h3><%= _("Certificate Details") %></h3> | ||
|
||
<h4><%= _("Issued To") %></h4> | ||
<blockquote> | ||
<p> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Common Name (CN):</b> %s") % h(find_name_attribute(@subject, "CN")) %><br> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Organization (O):</b> %s") % h(find_name_attribute(@subject, "O")) %><br> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Organization Unit (OU):</b> %s") % h(find_name_attribute(@subject, "OU")) %> | ||
</p> | ||
</blockquote> | ||
|
||
<h4><%= _("Issued By") %></h4> | ||
<blockquote> | ||
<p> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Common Name (CN):</b> %s") % h(find_name_attribute(@issuer, "CN")) %><br> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Organization (O):</b> %s") % h(find_name_attribute(@issuer, "O")) %><br> | ||
<% # %s is SSL certificate issuer identification | ||
%> | ||
<%= _("<b>Organization Unit (OU):</b> %s") % h(find_name_attribute(@issuer, "OU")) %> | ||
</p> | ||
</blockquote> | ||
|
||
<h4><%= _("Validity") %></h4> | ||
<blockquote> | ||
<p> | ||
<% # %s is date | ||
%> | ||
<%= _("<b>Issued On:</b> %s") % h(@certificate.not_before.localtime.strftime("%F")) %><br> | ||
<% # %s is date | ||
%> | ||
<%= _("<b>Expires On:</b> %s") % h(@certificate.not_after.localtime.strftime("%F")) %><br> | ||
<% if true || Time.now > @certificate.not_after %> | ||
<% # warning added after the certificate expiration date | ||
# if the certificate has expired | ||
%> | ||
<b><font color="red"><%= _("WARNING: The certificate has expired!") %></font></b> | ||
<% end %> | ||
</p> | ||
</p> | ||
</blockquote> | ||
|
||
<p> | ||
<%= _("<b>Serial Number:</b> %s") % @certificate.serial.to_s(16).scan(/../).join(":") %><br> | ||
|
||
<% # %s is SHA1 sum in HEX format, e.g. AB:CD:00:42:FF... | ||
%> | ||
<%= _("<b>SHA1 Fingerprint:</b> %s") % OpenSSL::Digest::SHA1.new(@certificate.to_der).to_s.upcase.scan(/../).join(':') %> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters