Masuk di root dengan ssh :
Installing Let’s Encrypt Repository
Clone the repo
If git isn’t installed on your droplet, install it using this command
sudo apt-get -y install git
and then run this command to clone the repository
sudo git clone https://github.com/quickfever/letsencrypt.git && cd letsencrypt && sudo mv sple.sh /usr/local/bin/qfssl && sudo chmod +x /usr/local/bin/qfssl
// The repo will be copied to your system under **/usr/local/bin** and will be made executable. And you don’t need to do anything ????
install SSL to Your Domain
Here are the simple steps to install SSL on your WordPress installation.
For main domains
(Don’t include www with your domain)
Visit serverpilot > Server > App, write down the app name, now type the following command in the putty and hit enter.
qfssl install example.com app_name main
Note: Either if your site is www or naked, use the above command it will issue SSL for example.com and www.example.com
For sub domains
If you run your website with subdomain like, blog.example.com etc.
qfssl install blog.example.com app_name sub
Note:
It will be auto renewed, but you can renew manually by giving “letsencrypt renew” command if SSL is expiring in next 30 days or less.
Take : renew automatic with cron job every day on: 03:15 am
terminal > root:
sudo crontab -e
15 3 * * */usr/local/bin/qfssl letsencrypt renew
Htaccess Changes.
If your site runs at www
You may want to redirect http, https:// to secure https://www, use the following code and add it to your .htaccess file.
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) https://www.example.com%{REQUEST_URI} [L,R=301]