Check-in [833f48f854]
Overview
SHA1:833f48f8545683856fe5b3789a8e96b79bb50dab
Date: 2016-02-29 04:32:16
User: rkeene
Comment:ChromeOS: Added certificate usage information to bare UI
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-29
04:32
[30263e48a3] ChromeOS: Release 5 (user: rkeene, tags: trunk)
04:32
[833f48f854] ChromeOS: Added certificate usage information to bare UI (user: rkeene, tags: trunk)
2016-02-28
22:37
[1a6c58edd1] ChromeOS: Added basic UI page that shows certificates (user: rkeene, tags: trunk)
Changes

Modified build/chrome/ui.js from [f3ee58ea69] to [02acf47905].

     1      1   var globalCerts = null;
     2      2   
     3      3   function displayCerts(htmlObject, certs) {
     4      4   	var html = "";
     5      5   	var idx;
     6      6   	var cert;
     7      7   	var certObj;
            8  +
            9  +	if (certs.length == 0) {
           10  +		htmlObject.innerHTML = "<b>No certificates found</b>";
           11  +
           12  +		return;
           13  +	}
     8     14   
     9     15   	certObj = new X509;
    10     16   
    11         -	html += "<ol>";
           17  +	html += "<ol type=\"1\">";
    12     18   
    13     19   	for (idx = 0; idx < certs.length; idx++) {
    14     20   		cert = certs[idx];
    15     21   
    16     22   		certObj.hex = BAtohex(new Uint8Array(cert.certificate));
    17     23   
    18         -		html += "\t<li>" + certObj.getSubjectString() + "</li>";
           24  +		html += "\t<li>";
           25  +		html += "\t\t" + certObj.getSubjectString() + ":" + certObj.getSerialNumberHex();
           26  +		html += "\t\t<ol type=\"a\">";
           27  +		html += "\t\t\t<li>Serial Number: " + certObj.getSerialNumberHex() + "</li>";
           28  +		html += "\t\t\t<li>Usage: " + X509.getExtKeyUsageString(certObj.hex) + "</li>";
           29  +		html += "\t\t</ol>";
           30  +		html += "\t</li>";
    19     31   	}
    20     32   
    21     33   	html += "</ol>";
    22     34   
    23     35   	delete certObj;
    24     36   
    25     37   	htmlObject.innerHTML = html;