Skip to content
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

RSA-OAEP key signing error #263

Open
bunyaminatik opened this issue Jan 28, 2022 · 2 comments
Open

RSA-OAEP key signing error #263

bunyaminatik opened this issue Jan 28, 2022 · 2 comments
Assignees

Comments

@bunyaminatik
Copy link

Hi,

I have a smart card that has rsa key pairs and Qualified certificate. But rsa key type is RSA-OAEP. When I try to sign with this key, it returns 'key does not match that of operation'. Because key usages returns empty. But I can use this key in bouncy castle on java for signing.

How could we solve that. Please help me.

image

@bunyaminatik
Copy link
Author

Key information also here from javascript console.

image

@microshine
Copy link
Contributor

@bunyaminatik Please try to get the private key from the storage with a signing mechanism

const alg = {
  name: "RSASSA-PKCS1-v1_5",
  hash: "SHA-256",
};
const privateKey = await provider.keyStorage.getItem("<private key id>", alg, false, ["sign"]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants