After writing this article, I investigated more and found easier and less bothering way. Click here and check.
Commonly, Let’s encrypt guides are for full-featured linux environment like local one. In shared hosting, that’s not common. Though many of them provide SSH environment, those are very limited.
In this guide, it doesn’t use shared hosting’s SSH environment. It only needs your linux environment.
- Accessible linux environment other than Hosting provider’s (e.g. Bash on Windows, Ubuntu virtual machine)
- CPanel accessible shared hosting (e.g. Bluehost, a small orange)
- Install git on linux environment.
sudo apt install git
- Clone Let’s encrypt’s repository.
git clone https://github.com/letsencrypt/letsencrypt
- Enter letsencrypt directory, and run script.
./letsencrypt-auto certonly -a manual –rsa-key-size 4096 -d (Domain to apply)
- Then it will show some windows. Proceed to ‘Make sure your web browser…’ message. When the message shows up, stop and go to next procedure.
- After that, it shows acme-challenge. As it shows, upload the file with given name and contents, at public_html/.well-known/acme-challenge directory. And then press ENTER.
- Finally certificates are created. Go to given directory, and copy all of them to local. The directory is blocked for users so you would need ‘sudo -s’ to cd.
- Access to CPanel of your shared hosting. And find SSL/TLS.
- Go into Private Keys
- Go down to ‘Choose a .key file’ and click ‘Browse’. Then upload ‘privkey.pem’.
- Go back and select Certificates (CRT). And upload cert.pem and chain.pem.
- Go to Install and Manage SSL for your site(HTTPS).
Firstly select your domain and click ‘Autofill by Domain’.
- Push ‘Install Certificate’ button.
- Access with https:// and check if it’s correctly installed.