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

error: No such key <pkcs11 URL> #36

Open
rhoerbe opened this issue May 27, 2017 · 0 comments
Open

error: No such key <pkcs11 URL> #36

rhoerbe opened this issue May 27, 2017 · 0 comments

Comments

@rhoerbe
Copy link

rhoerbe commented May 27, 2017

I imported a p12 cert to a Safenet eToken 5110. The result is that the private key has no label. As a result pk11.py does not find the key, because the search template is

(CKA_LABEL, keyname), (CKA_CLASS, CKO_PRIVATE_KEY), (CKA_KEY_TYPE, CKK_RSA)

My workaround is to make a second find using
(CKA_CLASS, CKO_PRIVATE_KEY), (CKA_KEY_TYPE, CKK_RSA)

cf https://github.com/rhoerbe/pyXMLSecurity/blob/default-digestalg-sha2/src/xmlsec/pk11.py#L123

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