-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work on Safari #9
Comments
Ok, so Safari seems to have problems with either There is a polyfill that could potentially fix this, but I think using a polyfill for crypto has serious drawbacks: a big performance penalty, possibly faulty or insecure implementation and increased bundle size. So I'm not sure what should be done... |
I might be missing something but following this post I can use
|
You probably have to run the promise, before you see the error.
|
It seems to work:
And when I inspect the object:
|
Interesting, can you also try |
Unfortunately RSA-PSS gives an error. ;( For the record RSA-PSS is not listed in the |
This issue appears to be related to The following code works on Safari 11.1: crypto.subtle.generateKey({
name: "RSA-PSS",
modulusLength: 2048,
publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
hash: { name: "SHA-256" },
}, true, ["sign", "verify"]).then(console.log) |
Very strange... |
u can use this polyfill https://github.com/PeculiarVentures/webcrypto-liner |
The web app crashes on Safari.
I don't know why and I don't have a mac to investigate.
The text was updated successfully, but these errors were encountered: