mirror of
https://git.coolaj86.com/coolaj86/greenlock.html
synced 2025-02-09 14:35:37 +00:00
use the opts we built, duh
This commit is contained in:
parent
2fb775a822
commit
136c9c06fe
@ -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
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user