Bobcares

Certbot AlmaLinux Apache | How to Install

by | Jan 6, 2024

Learn how to install Certbot on AlmaLinux with Apache. Our Apache Support team is here to help you with your questions and concerns.

How to install Certbot on AlmaLinux with Apache

Securing our website with HTTPS has become a key part of ensuring data integrity and user privacy in today’s world.

Certbot streamlines the process of obtaining free SSL/TLS certificates from Let’s Encrypt and configuring web servers like Nginx or Apache.

How to install Certbot on AlmaLinux with Apache

Today, we are going to take a look at installing Certbot on AlmaLinux 9. We will also get a quick peek at effortlessly obtaining and configuring SSL certificates.

How to install Certbot on AlmaLinux 9 with Apache

  1. To begin with, we have to make sure our system is up-to-date by running these commands with root privileges:

    # yum install epel-release

  2. Next, we can install Certbot as seen here:
    • For Nginx:

      # dnf install certbot python3-certbot-nginx

    • For Apache:

      # dnf install certbot python3-certbot-apache mod_ssl

  3. After that, it is time to obtain and configure Certificates:
    • For Nginx:

      # certbot --nginx

    • For Apache:

      # certbot --apache

  4. Then, we have to check the Certbot version to verify if the installation was successful:

    # certbot --version

Installing Certbot on AlmaLinux 8

  1. First, make sure the system is up-to-date and install the necessary repository:

    sudo dnf update
    sudo dnf install epel-release

  2. Then, install Certbot as seen here:
    • For Apache:

      sudo dnf install certbot python3-certbot-apache mod_ssl

    • For Nginx:

      sudo dnf install certbot python3-certbot-nginx

  3. Now, get an SSL certificate with Certbot by specifying the web server.

    For example:
    sudo certbot --apache

    Here the web server in use is Apache.

  4. Then, we have to make sure that proper firewall rules for HTTP (port 80) and HTTPS (port 443) are in place:

    sudo firewall-cmd --permanent --add-port=80/tcp --zone=public
    sudo firewall-cmd --permanent --add-port=443/tcp --zone=public
    sudo firewall-cmd --reload

  5. Finally, verify HTTPS enablement as seen here:
    firewall-cmd --list-all

    In case port 443 is disabled we can enable it via firewalld or iptables.

    • For firewalld:

      firewall-cmd --permanent --add-service=https
      firewall-cmd --reload

    • For iptables:

      iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT
      iptables-save

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to install Certbot on AlmaLinux with Apache.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.