To install Let's Encrypt SSL on Apache on Ubuntu 24.10, follow these steps:
Step 1 : Make sure the domain is properly configured with DNS records to pass verification.
Step 2 : Run the following command to update your system:
Step 3 : Install Certbot and the Apache plugin:
Step 4 : Create an Apache config file for your domain, e.g:
- Add the following config:
Step 5 : Create the website directory and a basic index.html
file:
Step 6 : Enable your site configuration:
Step 7 : Check for syntax errors:
Step 8 : Restart Apache to apply the changes:
Step 9 : Run Certbot to obtain an SSL certificate:
- Enter your email address.
- Agree to the terms of service.
- Choose whether to share your email address.
- Wait for the process to complete.
Step 10 : Test automatic renewal with the following command:
Step 11 : Visit https://example.devtutorial.io
to check your SSL certificate is working.
Congratulations, you have successfully installed Let's Encrypt SSL on Apache on Ubuntu 24.10!