no-acme #10

Merged
lastlink merged 13 commits from lastlink/bluecrypt-keypairs.js:no-acme into master 2019-05-11 22:32:00 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 0355354654 - Show all commits

4
app.js
View File

@ -128,7 +128,7 @@
$$('button').map(function ($el) { $el.disabled = true; });
var opts = {
jwk: JSON.parse($('textarea[name="JWK"]').value),
jwk: JSON.parse($('textarea[name="jwk"]').value),
claims: {
exp: "1h",
iss: document.getElementById(`-acmeDomains`).value
@ -165,7 +165,7 @@
$('.js-generate').hidden = false;
$('.js-sign').hidden = false;
$('textarea[name="JWK"]').value = JSON.stringify({
$('textarea[name="jwk"]').value = JSON.stringify({
"crv": "P-256",
Review

What's this hard-coded value for?

What's this hard-coded value for?
"d": "LImWxqqTHbP3LHQfqscDSUzf_uNePGqf9U6ETEcO5Ho",
"kty": "EC",

View File

@ -97,9 +97,9 @@
<input class="js-domains" type="text" id="-acmeDomains" value="example.com www.example.com">
</div>
<div>
<label for="pem">JWK:</label>
<label for="jwk">JWK:</label>
<br>
<textarea id="pem" name="pem"></textarea>
<textarea id="jwk" name="jwk"></textarea>
</div>
<button class="js-sign" hidden>Sign</button>
</form>