To install Let's Encrypt SSL on Apache running on CentOS 7.
Step 1 : Ensure the domain has DNS records set up to verify ownership.
Step 2 : Update your CentOS 7 system:
Step 3 : Install Certbot and python-certbot-apache:
Step 4 : Create a configuration file for your domain (example.devtutorial.io) and add the configuration:
Inside the file, add the following configuration:
Step 5 : Create a directory for your domain (example.devtutorial.io) and create an index.html file:
Step 6 : Test the Apache configuration:
Step 7 : Restart Apache:
Step 8 : Obtain SSL certificate:
- Enter your email address: [Enter your email]
-. Agree to the terms of service: y
- Share your email address: y
- Successful message.
Step 9 : Test SSL certificate renewal:
Step 10 : Visit your domain to verify the SSL installation.
Congratulations! You have successfully installed Let's Encrypt SSL on Apache running on CentOS 7.