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

Example5 - Signature verification attempts CKR_MECHANISM_INVALID return for Estonian ID Card #14

Open
omitobi opened this issue Sep 15, 2023 · 0 comments

Comments

@omitobi
Copy link

omitobi commented Sep 15, 2023

I used example 5 as it is here: https://github.com/PeculiarVentures/fortify-examples/blob/gh-pages/example5.html

The problem is at the line where it signs the piece of text it throws this error: CKR_MECHANISM_INVALID

Please advice on how to solve the issue.

The algorithm I used is

const alg = {
   name: 'ECDSA',
   hash: 'SHA-256',
}

The key pair is read from Estonian Smart Card.

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

1 participant