In this tutorial I will show you how to install SSL on Apache Ubuntu. This will work for almost any kind of Linux distribution.
Before we start, I assume you already have a domain pointed to your server and already enabled that website. You don’t ? Click here and add a website to your server.
First of all, connect to your server via SSH. I would personally recommend using PuTTY. On the other hand, you can connect via cmd if you are on Windows, or via terminal if you are on Mac.
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get install software-properties-common
- sudo add-apt-repository universe
- sudo apt-get update
- sudo apt-get install certbot python3-certbot-apache
- sudo certbot –apache
After that you will be asked if you want to redirect HTTP to HTTPS. I would personally recommend choosing the second option. It will redirect your visitors from HTTP to HTTPS.
After it will automatically install Let’s encrypt SSL and it will be automatically renewed after 3 months. How cool is that?
In conclusion, now we have installed SSL on Apache Ubuntu. You can add as many domains as you want, this SSL certificate is free.