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

get_attributes() with AttributeType::Class fails for private key with YubiHSM2 Nano #76

Closed
ximon18 opened this issue Jan 12, 2022 · 4 comments

Comments

@ximon18
Copy link
Contributor

ximon18 commented Jan 12, 2022

Hi,

Before I start asking questions again first let me say thanks for the cryptoki crate!

When I migrated my simple keyls tool from the Rust pkcs11 crate to the cryptoki crate I encountered a strange problem that I hadn't had before. When fetching attributes for a key I can request the class attribute but only for a public key, when doing so for a public key I get a "Feature not supported" error.

See the old code vs the new code.

Am I doing something wrong?

Thanks,

Ximon

@ionut-arm
Copy link
Member

Hi,

Hmm, this sounds somewhat familiar. Have you tried with the tip of main as well? I know it's a bit of a hassle to go from 0.2.0 to that, but it might be fixed. Otherwise I'll have to dig a bit. I know we had some problems related to attribute values that we didn't support, but I thought only vendor-specific values are left in that state now.

@ximon18
Copy link
Contributor Author

ximon18 commented Jan 12, 2022

Ah, I thought that was using the tip of main, my apologies I will check.

@ximon18
Copy link
Contributor Author

ximon18 commented Jan 12, 2022

Indeed it works fine with the tip of main, my apologies for that.

@ximon18 ximon18 closed this as completed Jan 12, 2022
ximon18 added a commit to ximon18/keyls that referenced this issue Jan 12, 2022
@ionut-arm
Copy link
Member

Glad to hear!!

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