certbot, rocky linux,

How to install Certbot on Rocky Linux 8

Aug 05, 2021 · 1 min read · Post a comment

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps you to generate a free Let’s Encrypt certificate depending on your web server. This tutorial will only cover the steps to install Certbot on Rocky Linux.

Prerequisites

  • Rocky Linux 8
  • sudo privileges

Install Certbot on Rocky Linux 8

Step 1. Run the system update command.

sudo dnf update

Step 2. Add the EPEL repository.

sudo dnf install epel-release

Step 3. Install Certbot and the required packages depending on your web server.

  • If you are using Apache, run:
    sudo dnf install certbot python3-certbot-apache mod_ssl
    
  • If you are using Nginx, run:
    sudo dnf install certbot python3-certbot-nginx
    

Step 4. To verify the Certbot installation, run:

certbot --version

You should get the latest stable version.
Output:

certbot 1.14.0

Conclusion

In this tutorial, I covered only the steps needed to install Certbot on Rocky Linux 8. In some of the next tutorials, I will cover how to obtain a free Let’s Encrypt certificate depending on your web server. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.