Install tlsx on Ubuntu 24.04

Install tlsx on Ubuntu 24.04

The tlsx is an open-source command line tool built for performing in-depth analysis of TLS (Transport Layer Security) configurations on websites and web services. This tutorial demonstrates how to install tlsx on Ubuntu 24.04.

Install tlsx

Fetch the most recent tlsx version from the GitHub repository and store it in a variable:

TLSX_VERSION=$(curl -s "https://api.github.com/repos/projectdiscovery/tlsx/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Download the archive file using the version determined earlier:

wget -qO tlsx.zip https://github.com/projectdiscovery/tlsx/releases/latest/download/tlsx_${TLSX_VERSION}_linux_amd64.zip

Extract the executable file to the /usr/local/bin directory:

sudo unzip -q tlsx.zip -d /usr/local/bin tlsx

Verify the tlsx installation by inspecting the installed version:

tlsx --version

Remove the archive file since it is no longer required:

rm -rf tlsx.zip

Testing tlsx

To use tlsx, you can specify a target domain and include various options to retrieve detailed TLS information. For example, the command:

tlsx -u google.com -silent -tls-version -cipher -serial

The -silent option suppresses extra output, while -tls-version displays the supported TLS versions, -cipher lists the encryption ciphers used, and -serial retrieves the certificate’s serial number.

Output example:

google.com:443 [TLS13] [TLS_AES_128_GCM_SHA256] [46:3E:05:B5:A2:71:90:C9:0A:EB:46:47:2B:6C:DE:CA]

Uninstall tlsx

Uninstall tlsx by deleting the corresponding executable:

sudo rm -rf /usr/local/bin/tlsx

Additionally, remove the tlsx config directory if desired:

rm -rf ~/.config/tlsx

Leave a Comment

Cancel reply

Your email address will not be published.