Browse Source

fix fullChain download link

master
John Shaver 2 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 @@
514 514
 						return Keypairs.export({ jwk: serverJwk }).then(function(keyPem) {
515 515
 							console.info("WINNING!");
516 516
 							console.info(certs);
517
-							$qs("#js-fullchain").innerHTML = [
517
+							var fullChainText = [
518 518
 								certs.cert.trim() + "\n",
519 519
 								certs.chain + "\n"
520 520
 							].join("\n");
521
+
522
+							$qs("#js-fullchain").innerHTML = fullChainText;
521 523
 							$qs("#js-download-fullchain-link").href =
522
-								"data:text/octet-stream;base64," + window.btoa(certs);
524
+								"data:text/octet-stream;base64," + window.btoa(fullChainText);
523 525
 
524 526
 							$qs("#js-privkey").innerHTML = keyPem;
525 527
 							$qs("#js-download-privkey-link").href =

Loading…
Cancel
Save