How to Install Let’s Encrypt on Hostinger

  1. Enable SSH access
    – Click SSH Access button
    – Toggle Disable button to Enable and click Update
  2. Installing ACME client and Composer
    – connect to your hosting via SSH
    ssh x123011738@31.170.164.22 -p 65002
    – clone acme client from github
    git clone https://github.com/kelunik/acme-client
    – cd to acme folder
    cd acme-client
    – Download and install the composer
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');";
    php composer-setup.php;
    php -r "unlink('composer-setup.php');";
    php composer.phar install --no-dev
  3. Generating SSL Certificate
    php bin/acme setup --server letsencrypt --email your@email.com
    php bin/acme issue --domains yourdomain.com:www.youdomain.com --path /home/x123011738/public_html:/home/x123011738/public_html --server letsencrypt

    cd /home/x123011738/acme-client/data/certs/acme-v01.api.letsencrypt.org.directory/yourdomain.com
    cat fullchain.pem
    cat key.pem
  4. Installing Certificat
    – click SSL button

    – Paste contents from certificate.txt to Certificate:(CRT) and contents from privatekey.txt to Private Key:(KEY)
  5. Checking expiration date and renewing SSL certificate
    php acme-client/bin/acme check --name yourdomain.com --server letsencrypt
    – you can set cron job to run the following command every other month
    php acme-client/bin/acme issue --domains yourdomain.com:www.yourdomain.com --path /home/x123011738/public_html:/home/x123011738/public_html --server letsencrypt

     


full explanation

https://www.hostinger.com/tutorials/ssl/how-to-install-free-ssl-from-lets-encypt-on-shared-hosting

 

for wordpress:
Really Simple SSL https://wordpress.org/plugins/really-simple-ssl/

Save

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.