in tools/js/generator.js [26:42]
function generatePemTextToDisplay() {
var readerPemFile = new FileReader()
// Define a handler to create appropriate private key file text.
readerPemFile.onload = (function (e) {
pemCredentialText = e.target.result;
// Add C-language variable declaration plus EOL formatting.
pemCredentialText = "\"" + formatCredentialTextForHTML(pemCredentialText);
// Give the HTML a way to access the text to display.
document.getElementById("pemToDisplay").innerHTML = pemCredentialText;
});
//Start first async read - other calls are chained inline
readerPemFile.readAsText(pemInputFile.files[0]);
}