Wrong path in default config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
softhsm (Debian) |
Fix Released
|
Unknown
|
|||
softhsm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After installing softhsm package and trying to init a new token, you will get an error due to a wrong path in the default config file:
> softhsm --init-token --slot 0 --label test
The SO PIN must have a length between 4 and 255 characters.
Enter SO PIN:
The user PIN must have a length between 4 and 255 characters.
Enter user PIN:
Error: The token is not present.
Error: Probably missing write permissions, please check the path and file given in the configuration.
> cat /etc/softhsm/
# SoftHSM configuration file
#
# Format:
# <Slot ID>:<Path to the token database>
#
# The given paths are just an indication to SoftHSM on where it should
# store the information for each token.
0:/var/
After removing the erroneous "/lib" in the path, the command will complete successfully.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: softhsm 1.3.7-2ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Mon May 4 09:46:52 2015
InstallationDate: Installed on 2014-07-10 (298 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
LANGUAGE=de_DE
TERM=xterm
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: softhsm
UpgradeStatus: Upgraded to vivid on 2015-04-27 (6 days ago)
Changed in softhsm (Debian): | |
status: | Unknown → New |
Changed in softhsm (Debian): | |
status: | New → Fix Released |
Thanks for reporting. I've found what I believe to be a corresponding bug reporting in Debian, so I have attached a bug watch.