Created
December 30, 2018 06:41
-
-
Save iamshreeram/a67abbbd23d56d058786c5530834086b to your computer and use it in GitHub Desktop.
Installing SSL certificate in hostinger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation of SSL Certificate | |
## 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] | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working on 26 June 2022
Installation of SSL Certificate
Enable SSH :
ssh [email protected] -p 65002
Download acme-client
git clone https://github.com/kelunik/acme-client
Change directory to acme client
cd acme-client
Install composer inside acme-client directory, needs your php version to be 7.4
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
Update 26/6/22 Certificates are stored in acme-v02.api instead of v01
Certificate :
/home/x123011738/acme-client/data/certs/acme-v02.api.letsencrypt.org.directory/yourdomain.com/fullchain.pem
private key :
/home/x123011738/acme-client/data/certs/acme-v02.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