You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No response from OP, so closing. For future readers: if you are seeing this error: you are trying to import a private key in an API that can only import public keys, or a public key in an API that can only import private keys. Specifically, "sign" can only be used with a private key, and "verify" can only be used with a public key.
deno 1.44.1 (release, x86_64-pc-windows-msvc)
v8 12.6.228.3
typescript 5.4.5
Calling this results in an error "Invalid key usages"
crypto.subtle.importKey('pkcs8', buffer, {name: "RSASSA-PKCS1-v1_5", hash: "SHA-256"}, true, ["verify"]);
Looking at
deno/ext/crypto/00_crypto.js
Line 3346 in 9dc0e33
The text was updated successfully, but these errors were encountered: