How To Install yhsm-validation-server on Debian 10

Learn how to install yhsm-validation-server on Debian 10 with this tutorial. yhsm-validation-server is Validation server using YubiHSM

Introduction

In this tutorial we learn how to install yhsm-validation-server on Debian 10.

What is yhsm-validation-server

yhsm-validation-server is:

This package validates YubiKey OTP’s, OATH codes or password hashes using YubiHSM.

The interface is a REST API with a simple web server listening on localhost only (per default). It can function as a drop-in replacement for the traditional PHP based Yubico validation server, except that it does not provide the advanced replication features of that server.

There are three methods to install yhsm-validation-server on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install yhsm-validation-server Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install yhsm-validation-server using apt-get by running the following command:

sudo apt-get -y install yhsm-validation-server

Install yhsm-validation-server Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install yhsm-validation-server using apt by running the following command:

sudo apt -y install yhsm-validation-server

Install yhsm-validation-server Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install yhsm-validation-server using aptitude by running the following command:

sudo aptitude -y install yhsm-validation-server

How To Uninstall yhsm-validation-server on Debian 10

To uninstall only the yhsm-validation-server package we can use the following command:

sudo apt-get remove yhsm-validation-server

Uninstall yhsm-validation-server And Its Dependencies

To uninstall yhsm-validation-server and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove yhsm-validation-server

Remove yhsm-validation-server Configurations and Data

To remove yhsm-validation-server configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge yhsm-validation-server

Remove yhsm-validation-server configuration, data, and all of its dependencies

We can use the following command to remove yhsm-validation-server configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge yhsm-validation-server

Dependencies

yhsm-validation-server have the following dependencies:

References

Summary

In this tutorial we learn how to install yhsm-validation-server package on Debian 10 using different package management tools: apt, apt-get and aptitude.