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

pkcs11-tool: Missing printout of verifyRecover and signRecover key usages #2886

Closed
johanhedin opened this issue Oct 3, 2023 · 0 comments · Fixed by #2888
Closed

pkcs11-tool: Missing printout of verifyRecover and signRecover key usages #2886

johanhedin opened this issue Oct 3, 2023 · 0 comments · Fixed by #2888

Comments

@johanhedin
Copy link
Contributor

Problem Description

pkcs11-tool does not print out signRecover or verifyRecover key usages for keys. On the other hand, pkcs15-tool does.

Proposed Resolution

Add printout of signRecover and verifyRecover to pkcs11-tool.

Steps to reproduce

Public key on smart card printed with pkcs15-tool (verifyRecover shown):

$ pkcs15-tool --list-public-keys
Public RSA Key [My Label]
        Object Flags   : [0x02], modifiable
        Usage          : [0xD0], wrap, verify, verifyRecover
        Access Flags   : [0x00]
        ModLength      : 2048
        Key ref        : 0 (0x00)
        Native         : no
        Path           : 3f0050155501
        ID             : 0bed4e

Same public key on the same smart card printed with pkcs11-tool (verifyRecover not shown):

$ pkcs11-tool --list-objects --type pubkey
Using slot 0 with a present token (0x0)
Public Key Object; RSA 2048 bits
  label:      My Label
  ID:         0bed4e
  Usage:      verify, wrap
  Access:     none

Same problem exist for the private key but with signRecover missing instead.

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

Successfully merging a pull request may close this issue.

1 participant