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
SafeNet Data Objects #227
Comments
No, that is not a known issue. Please post the attributes you are using to create those objects. |
Dear Jariq, Thanks for asking! Below more info. Thanks,
|
Did you perform login before you searched for data objects? |
Thanks for asking. I'm using the following code:
Your feedback is appreciated! Regards, |
Problem might be here: List<IObjectAttribute> keyAttributes = new List<IObjectAttribute>()
{
new ObjectAttribute(CKA.CKA_CLASS, CKO.CKO_DATA),
}; Try changing it to: List<IObjectAttribute> keyAttributes = new List<IObjectAttribute>()
{
session.Factories.ObjectAttributeFactory.Create(CKA.CKA_CLASS, CKO.CKO_DATA),
}; |
Thanks for your suggestion! No difference on Windows. On Ubuntu 22.04 x64 the InvalidCastException is gone, which is great, the data object, however, is not readable. |
Dear @jariq Do you have an update? Anything I can do to help? Thanks, |
Dear,
Adding data objects on a Gemalto ID Prime MD with the Pkcs11Interop library succeeds as far that the data objects are visible in the SafeNet Authentication Client. Querying the data objects with the Pkcs11Interop library or with Pkcs11Admin fails (no data objects are visible).
Is this a known issue?
Thanks,
Bart
The text was updated successfully, but these errors were encountered: