quinnwencn / blog

Apache License 2.0
0 stars 0 forks source link

[HSM] Install softhsm on ubuntu #47

Open quinnwencn opened 3 months ago

quinnwencn commented 3 months ago
  1. Download source code from softHSM release page
    
    wget https://github.com/opendnssec/SoftHSMv2/archive/refs/tags/2.6.1.tar.gz

tar -xvf 2.6.1.tar.gz

2.  Compile the source code
```bash
cd SoftHSMv2-2.6.1
./autogen.sh
./configure --prefix=/opt/softhsm
make -j4
sudo make install
  1. Add softhsm binary to PATH
    vim ~/.bashrc
    # add following line to ~/.bashrc
    export PATH=$PATH:/opt/softhsm/bin
  2. Now softhsm2-util is available on your machine: image
  3. Install opensc
    sudo apt install opensc