Index: build/chrome/ui.js
==================================================================
--- build/chrome/ui.js
+++ build/chrome/ui.js
@@ -3,21 +3,33 @@
function displayCerts(htmlObject, certs) {
var html = "";
var idx;
var cert;
var certObj;
+
+ if (certs.length == 0) {
+ htmlObject.innerHTML = "No certificates found";
+
+ return;
+ }
certObj = new X509;
- html += "
";
+ html += "";
for (idx = 0; idx < certs.length; idx++) {
cert = certs[idx];
certObj.hex = BAtohex(new Uint8Array(cert.certificate));
- html += "\t- " + certObj.getSubjectString() + "
";
+ html += "\t- ";
+ html += "\t\t" + certObj.getSubjectString() + ":" + certObj.getSerialNumberHex();
+ html += "\t\t
";
+ html += "\t\t\t- Serial Number: " + certObj.getSerialNumberHex() + "
";
+ html += "\t\t\t- Usage: " + X509.getExtKeyUsageString(certObj.hex) + "
";
+ html += "\t\t
";
+ html += "\t ";
}
html += "
";
delete certObj;