How To Install certspotter on Ubuntu 18.04
Introduction
In this tutorial we learn how to install certspotter on Ubuntu 18.04.
What is certspotter
certspotter is:
Cert Spotter is a Certificate Transparency log monitor from SSLMate that alerts you when a SSL/TLS certificate is issued for one of your domains. Cert Spotter is easier than other open source CT monitors, since it does not require a database. It’s also more robust, since it uses a special certificate parser that ensures it won’t miss certificates.
Cert Spotter is also available as a hosted service by SSLMate, https://sslmate.com/certspotter
You can use Cert Spotter to detect:
- Certificates issued to attackers who have compromised a certificate authority and want to impersonate your site.
- Certificates issued to attackers who are using your infrastructure to serve malware.
- Certificates issued in violation of your corporate policy or outside of your centralized certificate procurement process.
- Certificates issued to your infrastructure providers without your consent.
There are three methods to install certspotter 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 certspotter Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install certspotter using apt-get by running the following command:
sudo apt-get -y install certspotter
Install certspotter Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install certspotter using apt by running the following command:
sudo apt -y install certspotter
Install certspotter 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 certspotter using aptitude by running the following command:
sudo aptitude -y install certspotter
How To Uninstall certspotter on Ubuntu 18.04
To uninstall only the certspotter package we can use the following command:
sudo apt-get remove certspotter
Uninstall certspotter And Its Dependencies
To uninstall certspotter and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove certspotter
Remove certspotter Configurations and Data
To remove certspotter configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge certspotter
Remove certspotter configuration, data, and all of its dependencies
We can use the following command to remove certspotter configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge certspotter
References
Summary
In this tutorial we learn how to install certspotter package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.