Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-100

softhsm2-util: creating new slot/token fails on incorrect slot number

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0a2
    • Fix Version/s: 2.0.0b2
    • Component/s: Support tools
    • Labels:
      None
    • Environment:

      Red Hat Enterprise Linux 7

      Description

      (reported by Paul Wouters from Red Hat)

      After I imported my token from SoftHSM v1 I wanted to create a new slot; for testing I ran:

      softhsm2-util --init-token --slot 6 --label "delme" --pin 1234 --so-pin 1234

      This gives an error about the slot number. I guess it always has slotsused+1 slots.

      Than I ran:

      softhsm2-util --init-token --slot 1 --label "delme" --pin 1234 --so-pin 1234

      This worked, however, softhsm2-util --show-slots shows that both slot 0 and slot 1 now have the "delme" label. So my slot 0 with imported token from SoftHSM v1 has become unusable.

      Comment by Roland: I guess softhsm2-util needs to check the slot number or as Paul also suggested in his e-mail needs to have an option to create a new slot rather than explicitly having to find out which is the first empty slot.

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            rijswijk Roland van Rijswijk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: