Skip to content

pkcs11-tool should provide an option to get slot information as pkcs11-uri #3123

@sarroutbi

Description

@sarroutbi

Problem Description

It would be great if pkcs11-tool could include a function to dump slot information as a PKCS#11 URI

Proposed Resolution

pkcs11-tool already dumps information related to each of the detected devices. For example:

$ pkcs11-tool -L
Available slots:
Slot 0 (0x0): Yubico YubiKey OTP+CCID 00 00
  token label        : clevis
  token manufacturer : piv_II
  token model        : PKCS#15 emulated
  token flags        : login required, rng, token initialized, PIN initialized
  hardware version   : 0.0
  firmware version   : 0.0
  serial num         : 0123456789abcde
  pin min/max        : 4/8

An option like -u, --uri would be nice, to dump this information as a supported PKCS#11 URI:

$ pkcs11-tool -u
Slot 0 (0x0): Yubico YubiKey OTP+CCID 00 00: pkcs11:model=PKCS%2315%20emulated;manufacturer=piv_II;serial=0123456789abcde;token=clevis 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions