Browse Source

use the opts we built, duh

master
AJ ONeal 5 years ago
parent
commit
136c9c06fe
  1. 2
      app/js/app.js
  2. 2
      app/js/bacme.js

2
app/js/app.js

@ -34,9 +34,11 @@
testEcdsaSupport().then(function () {
console.log("supports ECDSA");
BROWSER_SUPPORTS_ECDSA = true;
return true;
}).catch(function () {
console.log("DOES NOT supports ECDSA");
BROWSER_SUPPORTS_ECDSA = false;
return false;
});
// TODO test RSA support

2
app/js/bacme.js

@ -566,7 +566,7 @@ BACME.generateKeypair = function (opts) {
}
var extractable = true;
return window.crypto.subtle.generateKey(
{ name: "ECDSA", namedCurve: "P-256" }
wcOpts
, extractable
, [ 'sign', 'verify' ]
);

Loading…
Cancel
Save