How To Install ruby-safety-net-attestation on Debian 12

Learn how to install ruby-safety-net-attestation on Debian 12 with this tutorial. ruby-safety-net-attestation is SafetyNet attestation response verification

Introduction

In this tutorial we learn how to install ruby-safety-net-attestation on Debian 12.

What is ruby-safety-net-attestation

ruby-safety-net-attestation is:

A Ruby library to verify SafetyNet attestation statements from Google Play Services on your server.

This library verifies that the statement:

  • has a valid signature that is trusted using certificates from https://pki.goog/
  • has the correct nonce
  • has been generated recently (default allowed leeway from current time is 60 seconds)
  • has a signing certificate with the correct subject

With a valid statement your application can then inspect the information contained about the device integrity, calling app, and if applicable any integrity errors and potential solutions.

There are three methods to install ruby-safety-net-attestation on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-safety-net-attestation Using apt-get

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

sudo apt-get update

After updating apt database, We can install ruby-safety-net-attestation using apt-get by running the following command:

sudo apt-get -y install ruby-safety-net-attestation

Install ruby-safety-net-attestation Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-safety-net-attestation using apt by running the following command:

sudo apt -y install ruby-safety-net-attestation

Install ruby-safety-net-attestation 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 ruby-safety-net-attestation using aptitude by running the following command:

sudo aptitude -y install ruby-safety-net-attestation

How To Uninstall ruby-safety-net-attestation on Debian 12

To uninstall only the ruby-safety-net-attestation package we can use the following command:

sudo apt-get remove ruby-safety-net-attestation

Uninstall ruby-safety-net-attestation And Its Dependencies

To uninstall ruby-safety-net-attestation and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove ruby-safety-net-attestation

Remove ruby-safety-net-attestation Configurations and Data

To remove ruby-safety-net-attestation configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge ruby-safety-net-attestation

Remove ruby-safety-net-attestation configuration, data, and all of its dependencies

We can use the following command to remove ruby-safety-net-attestation configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-safety-net-attestation

Dependencies

ruby-safety-net-attestation have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-safety-net-attestation package on Debian 12 using different package management tools: apt, apt-get and aptitude.