Let’s Encrypt — Install Free SSL | Shared Hosting
I had several domains on Namecheap and my 1-year free SSL is now expired. So should I pay 30 bucks for renewal or do something else?
So this is my website, no SSL 😔
Let’s start installing free SSL now::
I’m using Namecheap `Stellar Hosting`
#1 Open Terminal:
If you have shared hosting, open terminal from cPanel or if you have dedicated hosting or VPS, simply connect with SSH.
Go to your root directory
cd ~
Enter this command in your root directory
curl https://get.acme.sh | sh
Acme.sh is an open-source repo https://github.com/acmesh-official/acme.sh
To verify install::
ls .acme.sh
#2 Issue SSL Certificate:
For issuing, a regular certificate, use this command:
.acme.sh/acme.sh -—issue -d DOMAIN_NAME -w DOMAIN_DIRECTORY —debug
Acme supports the following modes:
- Webroot mode
- Standalone mode
- Standalone tls-alpn mode
- Apache mode
- Nginx mode
- DNS mode
- DNS alias mode
- Stateless mode
If you want to issue certificate with Standalone tls-alpn mode
.acme.sh/acme.sh -—issue -d DOMAIN_NAME -w DOMAIN_DIRECTORY —debug --alpn --test
For more advanced options:: https://github.com/acmesh-official/acme.sh/wiki/How-to-install
All the generated certificates will be stored in:
.acme.sh/DOMAIN_NAME/
#3 Install SSL Certificate (cPanel):
- Login to your cPanel
- Go to SSL/TLS
3. Click On Manage SSL Sites
4. Scroll all the way down to
5. Select your domain
6. Copy certificates from
CRT => cat .acme.sh/DOMAIN_NAME/DOMAIN_NAME.cer
KEY => cat .acme.sh/DOMAIN_NAME/DOMAIN_NAME.key
CABUNDLE you can leave empty
7. Done!