How To Install testssl.sh on Ubuntu 18.04

In this tutorial we learn how to install testssl.sh on Ubuntu 18.04. testssl.sh is Command line tool to check TLS/SSL ciphers, protocols and cryptographic flaws

Introduction

In this tutorial we learn how to install testssl.sh on Ubuntu 18.04.

What is testssl.sh

testssl.sh is:

testssl.sh is a free command line tool which checks a server’s service on any port for the support of TLS/SSL ciphers, protocols as well as recent cryptographic flaws and more.

Key features

  • Clear output: you can tell easily whether anything is good or bad

  • Ease of installation: It works for Linux, Darwin, FreeBSD and MSYS2/Cygwin out of the box: no need to install or configure something, no gems, CPAN, pip or the like.

  • Flexibility: You can test any SSL/TLS enabled and STARTTLS service, not only webservers at port 443

  • Toolbox: Several command line options help you to run YOUR test and configure YOUR output

  • Reliability: features are tested thoroughly

  • Verbosity: If a particular check cannot be performed because of a missing capability on your client side, you’ll get a warning

  • Privacy: It’s only you who sees the result, not a third party

  • Freedom: It’s 100% open source. You can look at the code, see what’s going on and you can change it. Heck, even the development is open (github)

There are three methods to install testssl.sh on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install testssl.sh Using apt-get

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

sudo apt-get update

After updating apt database, We can install testssl.sh using apt-get by running the following command:

sudo apt-get -y install testssl.sh

Install testssl.sh Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install testssl.sh using apt by running the following command:

sudo apt -y install testssl.sh

Install testssl.sh 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install testssl.sh using aptitude by running the following command:

sudo aptitude -y install testssl.sh

How To Uninstall testssl.sh on Ubuntu 18.04

To uninstall only the testssl.sh package we can use the following command:

sudo apt-get remove testssl.sh

Uninstall testssl.sh And Its Dependencies

To uninstall testssl.sh and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove testssl.sh

Remove testssl.sh Configurations and Data

To remove testssl.sh configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge testssl.sh

Remove testssl.sh configuration, data, and all of its dependencies

We can use the following command to remove testssl.sh configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge testssl.sh

References

Summary

In this tutorial we learn how to install testssl.sh package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.