Install Free SSL on Hostinger automatically
Whoever has Shared Hosting at Hostinger, s/he may install free SSL (either from Let’s encrypt, comodo trial or whatever) for their domains. To use online version for Let’s encrypt, then you can use:
A) Online version here
B) Use onsite installation: A while ago, we have created auto-installer of Let’s Encrypt‘s free SSL certificate, which will send you the email, containing the generated keys.
- download it from GitHub , upload the
auto_sslfolder into public_html
- setup cron to run once in every 2 months :
wget -O /dev/null -o /dev/null "http://yoursite.com/auto_ssl/cron.php"
(just change your domain, and also in
cron.phpjust change the first line to your email.)
- Now, as a one-time action, open that url manually in Browser . Whenever cron executes, you will get mail, it will arrive in your SPAMBOX (Check there and unmark as spam) and you will see the SSL keys.
- Activate SSL KEYS it under your Hostinger account panel, under Advanced > SSL. (copy them including the hyphens
---and put them in “Certificate” and “Private key” fields).
From now, leave the site and it will automatically execute every 2 months.