-
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
(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.