fix fullChain download link
This commit is contained in:
parent
210a7877a0
commit
b5f0c30652
|
@ -514,12 +514,14 @@
|
||||||
return Keypairs.export({ jwk: serverJwk }).then(function(keyPem) {
|
return Keypairs.export({ jwk: serverJwk }).then(function(keyPem) {
|
||||||
console.info("WINNING!");
|
console.info("WINNING!");
|
||||||
console.info(certs);
|
console.info(certs);
|
||||||
$qs("#js-fullchain").innerHTML = [
|
var fullChainText = [
|
||||||
certs.cert.trim() + "\n",
|
certs.cert.trim() + "\n",
|
||||||
certs.chain + "\n"
|
certs.chain + "\n"
|
||||||
].join("\n");
|
].join("\n");
|
||||||
|
|
||||||
|
$qs("#js-fullchain").innerHTML = fullChainText;
|
||||||
$qs("#js-download-fullchain-link").href =
|
$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-privkey").innerHTML = keyPem;
|
||||||
$qs("#js-download-privkey-link").href =
|
$qs("#js-download-privkey-link").href =
|
||||||
|
|
Loading…
Reference in New Issue