Browse Source

fix fullChain download link

master
John Shaver 9 months ago
parent
commit
b5f0c30652
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app/js/greenlock.js

+ 4
- 2
app/js/greenlock.js View File

@@ -514,12 +514,14 @@
return Keypairs.export({ jwk: serverJwk }).then(function(keyPem) {
console.info("WINNING!");
console.info(certs);
$qs("#js-fullchain").innerHTML = [
var fullChainText = [
certs.cert.trim() + "\n",
certs.chain + "\n"
].join("\n");

$qs("#js-fullchain").innerHTML = fullChainText;
$qs("#js-download-fullchain-link").href =
"data:text/octet-stream;base64," + window.btoa(certs);
"data:text/octet-stream;base64," + window.btoa(fullChainText);

$qs("#js-privkey").innerHTML = keyPem;
$qs("#js-download-privkey-link").href =


Loading…
Cancel
Save