Installing LE SSL Cert in a VPS while using ClouFlare

Hi, I'm following this thread : How to get a Let's Encrypt certificate while using CloudFlare
And here's what I exactly did:
1 - logged in using SSH via Putty.
2 - Cloned LE from git and change to LE directory as shown in the thread.

git clone GitHub - certbot/certbot: Certbot is EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.
cd letsencrypt/

3 - automatic install of LE: ./letsencrypt-auto
Things started to be installed and I got the output:
installation succeeded.
No installers seem to be present and working on your system; fix that or try running Certbot with the Certonly command.
4 - I typed the command :certonly --webroot --webroot-path /usr/share/nginx/html/ --renew-by-default --email email@host.tld --text --agree-tos -d example.tld -d www.example.tld as said in the thread and with the necessary changes and I got Certonly command not found.
then I typed /root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot --webroot-path /usr/share/nginx/html/ --renew-by-default --email email@host.tld --text --agree-tos -d example.tld -d www.example.tld and I got this long output:

2016-09-17 10:19:07,632:WARNING:certbot.cli:You are running with an old copy of letsencrypt-auto that does not receive updates, and is less reliable than more recent versions. We recommend upgrading to the latest certbot-auto script, or using native OS packages.
Failed authorization procedure. www.mysite.ltd (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.mysite.ltd/.well-known/acme-challenge/liqON_bL_7H4CqBHkyonznc5X0i0KiAKXCNq5vsV2RA: "

403 Forbidden

403 Forbidden


ngin", mysite.ltd (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mysite.ltd/.well-known/acme-challenge/fBhBJUcFoC5HlfvUnhGTrT0VYziIfja6oENehr_qdnc: " 403 Forbidden

403 Forbidden


ngin"

IMPORTANT NOTES:

  • If you lose your account credentials, you can recover through
    e-mails sent to email@live.com.
  • The following errors were reported by the server:

Domain: www.mysite.ltd
Type: unauthorized
Detail: Invalid response from
http://www.mysite.ga/.well-known/acme-challenge/liqON_bL_7H4CqBHkyonznc5X0i0KiAKXCNq5vsV2RA:
"

403 Forbidden

403 Forbidden


ngin"

Domain: mysite.ltd
Type: unauthorized
Detail: Invalid response from
http://mysite.ltd/.well-known/acme-challenge/fBhBJUcFoC5HlfvUnhGTrT0VYziIfja6oENehr_qdnc:
"

403 Forbidden

403 Forbidden


ngin"

To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.

Please I nedd help.
Thanks in advance.
any thoughts ??

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.