Skip to content

iamshreeram/php-ssl-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

php-ssl-installer

This is fork of this gist. Steps to install SSL certificate in hostinger.

Enable SSH :

ssh [email protected] -p 65002

Download acme-client

git clone https://github.com/kelunik/acme-client

Install 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

Generating SSL

php bin/acme setup --server letsencrypt --email [email protected] --agree-terms
php bin/acme issue --domains yourdomain.com:www.youdomain.com --path /home/x123011738/public_html:/home/x123011738/public_html --server letsencrypt

Certificate : /home/x123011738/acme-client/data/certs/acme-v01.api.letsencrypt.org.directory/yourdomain.com/fullchain.pem private key : /home/x123011738/acme-client/data/certs/acme-v01.api.letsencrypt.org.directory/yourdomain.com/key.pem

Add CRT and privatekey in hostinger

Checking expiration date and renewing SSL certificate

php acme-client/bin/acme check --name yourdomain.com --server letsencrypt

Automatically renew Let’s Encrypt SSL certificate with cron job

php acme/acme-client/bin/acme issue --domains yourdomain.com:www.yourdomain.com --path /home/x123011738/public_html:/home/x123011738/public_html --server letsencrypt

About

Installing SSL certificate in hostinger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published