forked from coolaj86/bluecrypt-keypairs.js
fix initial jwk
This commit is contained in:
parent
037b8489f6
commit
0355354654
4
app.js
4
app.js
|
@ -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",
|
||||
"d": "LImWxqqTHbP3LHQfqscDSUzf_uNePGqf9U6ETEcO5Ho",
|
||||
"kty": "EC",
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue