hsmwiz command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hsmwiz: command not found
or when using sudo you get the following error message
sudo: hsmwiz: command not found
Solutions to hsmwiz: command not found
How To Fix hsmwiz: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hsmwiz is provided by hsmwiz package.
hsmwiz is:
HSMWiz is a frontend for OpenSC to ease handling of the NitroKey HSM USB smart card. It might work with other smart cards as well, I’m not certain. Basically, it is just boilerplate that does nothing more than what is already described in the excellent OpenSC tutorial (https://github.com/OpenSC/OpenSC/wiki/SmartCardHSM) for the Smart Card HSM. However, there’s some annoying issues with that – multiple tools are needed (pkcs11-tool, pkcs15-tool, sc-hsm-tool, OpenSSL) and output formats are sometimes not very user friendly (e.g., public keys are exported as binary DER blobs instead of PEM files). So I wrote this little frontend to encapsulate common tasks a bit. The hardware this was develped with is the NitroKey HSM, which is a quite affordable smart-card based USB HSM.
To fix this problem, we can install more using the command below.
sudo apt-get -y install hsmwiz
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install hsmwiz.
sudo apt -y install hsmwiz
Or if you have aptitude installed you can use the following command.
sudo aptitude install hsmwiz
Summary
In this tutorial we learn how to fix hsmwiz command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.