diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-03-06 15:53:07 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-03-14 04:40:35 -0400 |
commit | d4a80dbe52158f204e78afea742fc3322bbc65e5 (patch) | |
tree | e57040a9b05bef1f652a89b75b2ad13faf8fbbc9 /install/ui | |
parent | e9d68a7b001d23a7bac7cbf52e270c0723f1f69d (diff) | |
download | freeipa-d4a80dbe52158f204e78afea742fc3322bbc65e5.tar.gz freeipa-d4a80dbe52158f204e78afea742fc3322bbc65e5.tar.xz freeipa-d4a80dbe52158f204e78afea742fc3322bbc65e5.zip |
Display serial number as HEX (DECIMAL) when showing certificates.
https://fedorahosted.org/freeipa/ticket/1991
Diffstat (limited to 'install/ui')
-rwxr-xr-x | install/ui/certificate.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 9645aad39..b5356224f 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -319,6 +319,7 @@ IPA.cert.view_dialog = function(spec) { that.subject = IPA.cert.parse_dn(spec.subject); that.serial_number = spec.serial_number || ''; + that.serial_number_hex = spec.serial_number_hex || ''; that.issuer = IPA.cert.parse_dn(spec.issuer); that.issued_on = spec.issued_on || ''; that.expires_on = spec.expires_on || ''; @@ -368,6 +369,12 @@ IPA.cert.view_dialog = function(spec) { }).appendTo(tr); tr = $('<tr/>').appendTo(table); + $('<td>'+IPA.messages.objects.cert.serial_number_hex+':</td>').appendTo(tr); + $('<td/>', { + text: that.serial_number_hex + }).appendTo(tr); + + tr = $('<tr/>').appendTo(table); $('<td/>', { 'colspan': 2, 'html': '<h3>'+IPA.messages.objects.cert.issued_by+'</h3>' @@ -785,6 +792,7 @@ IPA.cert.status_widget = function(spec) { 'title': title, 'subject': result['subject'], 'serial_number': result['serial_number'], + 'serial_number_hex': result['serial_number_hex'], 'issuer': result['issuer'], 'issued_on': result['valid_not_before'], 'expires_on': result['valid_not_after'], |