Skip to content

error: No such key <pkcs11 URL> #36

@rhoerbe

Description

@rhoerbe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions