PeculiarVentures / graphene

A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript. (Keywords: Javascript, PKCS#11, Crypto, Smart Card, HSM)
MIT License
167 stars 34 forks source link

Unable to run tests on some tokens with graphene-cli #85

Open rmhrisk opened 7 years ago

rmhrisk commented 7 years ago

I have a SafeNet 5100, I am able to enumerate the supported algorithms with grapgene-cli but I am not able to successfully execute the batch perf tests.

For example, here is a subset of capabilities:

Algorithm name h s v e d w u g D
RSA_PKCS_KEY_PAIR_GEN x
RSA_PKCS x x x x x x

If I run:

> test gen --alg RSA_PKCS_KEY_PAIR_GEN  --it 2

Error: No such algorithm

I think this is impacting our document signing cases with this token.

It also seems we are seeing something similar with a NitroKey https://github.com/PeculiarVentures/graphene/pull/83

rmhrisk commented 7 years ago

A new mechanism was recently added in a PR, the test failure in CI has no relation to this issue here it seems. Hopefully, https://github.com/PeculiarVentures/graphene/commit/51ff1b7c4c0fadbaec1cba2f123f550757029d97 will fix it.

rmhrisk commented 6 years ago

There is a new change in the graphene-cli and it should make this work, see - https://github.com/PeculiarVentures/graphene-cli/issues/5

We will need to update the capabilities documents for each document.

rmhrisk commented 6 years ago

@jspark311 can you see if this fixes your issue with the NitroKey?

rmhrisk commented 6 years ago

@nickrmc83 would you be able to re-run the Thales capabilities?

nickrmc83 commented 6 years ago

I'll try and take a look tomorrow.

Nick

On 26 Sep 2017 10:56 pm, "Ryan Hurst" notifications@github.com wrote:

@nickrmc83 https://github.com/nickrmc83 would you be able to re-run the Thales capabilities?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PeculiarVentures/graphene/issues/85#issuecomment-332347904, or mute the thread https://github.com/notifications/unsubscribe-auth/ABhXUPh-5MqdL7Qoep9kP3tkHnZNEDgSks5smXL7gaJpZM4Pho-B .