Wrong path in default config file

Bug #1451348 reported by Schitzosteve on 2015-05-04
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
softhsm (Debian)
Fix Released
Unknown
softhsm (Ubuntu)
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.conf
# 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/lib/lib/softhsm/slot0.db

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
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
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)

Schitzosteve (schitzosteve) wrote :
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting. I've found what I believe to be a corresponding bug reporting in Debian, so I have attached a bug watch.

tags: added: wily
Changed in softhsm (Debian):
status: Unknown → New
Changed in softhsm (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.