Create New Post

how to install free ssl certificate in centos 7?

Step 1: Install Certbot via Snap (Recommended by Let's Encrypt)

To avoid compatibility issues with the package manager, you can install Certbot via Snap, which is the official recommended method by Let's Encrypt for systems that don't have the required packages in their repositories.

1. Install Snap on CentOS

First, ensure you have snapd installed. This might require enabling EPEL again.

  1. Install EPEL (if not already done):

     sudo yum install epel-release
  2. Now that you have access to the repository, install all of the required packages:

     sudo yum install certbot python2-certbot-apache mod_ssl
  3. Run Certbot Again: After the plugin is installed, run Certbot to configure SSL for Apache:

     sudo certbot --apache -d example.com
  4. Redirection from non www to www

     sudo certbot --apache -d example.com -d www.example.com
  5. Run Certbot to ensure snapd is working properly:

     sudo certbot --apache

  .

Comments

Leave a Reply

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

72939