Bluehorn/libp11

PKCS11_enumerate_keys returns only private keys

mouse07410 opened this issue · 1 comments

PKCS11_enumerate_keys() returns anything only if private keys are available to it at that time. This breaks the use case when one wants to retrieve the public key from the token and perform "verify" or "encrypt".

There are work-arounds for this, but the correct solution should be either enumerating all the keys instead of just private keys, or better yet - adding PKCS11_enumerate_pubkeys() function.

Fixed in the main repo OpenSC/libp11