I did it. Now I will make small tutorial for everyone who is in my situation which is MAJORITY.
First you need to install Letsencrypt as seen in Quick Guide https://community.letsencrypt.org/t/quick-start-guide/1631
If you have done anything properly you should have something like this at your terminal:
username@computername:~/letsencrypt$
then you run following command:
./letsencrypt-auto certonly --text --manual-public-ip-logging-ok --rsa-key-size 4096
–manual --email mymail@mywebsite.com -d mywebsite.com -d www.mywebsite.com
of course you should change mywebsite with your website
you will get this:
Updating letsencrypt and virtual environment dependencies…
Running with virtualenv: sudo /home/username/.local/share/letsencrypt/bin/letsencrypt certonly --text --manual-public-ip-logging-ok --rsa-key-size 4096 --manual --email mymail@mywebsite.com -d pmywebsite.com -d www.mywebsite.com
[sudo] password for predrag:
Make sure your web server displays the following content at
http://mywebsite.com.well-known/acme-challenge/HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc before continuing:
HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc.5eGyE9mY7abn1imDCGu4odow4aweX0jQHU8pet-Udxw
If you don’t have HTTP server configured, you can run the following
command on the target server (as root):
mkdir -p /tmp/letsencrypt/public_html/.well-known/acme-challenge
cd /tmp/letsencrypt/public_html
printf “%s” HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc.5eGyE9mY7abn1imDCGu4odow4aweX0jQHU8pet-Udxw > .well-known/acme-challenge/HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc
run only once per server:
$(command -v python2 || command -v python2.7 || command -v python2.6) -c
"import BaseHTTPServer, SimpleHTTPServer;
s = BaseHTTPServer.HTTPServer((’’, 80), SimpleHTTPServer.SimpleHTTPRequestHandler);
s.serve_forever()"
Press ENTER to continue
At this point before you press ENTER you should login to your webhost Cpanel go to www or public_html folder and create first .well-known folder then inside this folder create another one acme-challenge then inside this create first file. The name of file will be the the last part of the link you need to click to check is the challenge file at place in this case this is:
HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc
save it as generic file. Then open file with edit and copy past the content which in my case was:
HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc.5eGyE9mY7abn1imDCGu4odow4aweX0jQHU8pet-Udxw
Save the file and check the link above http://mywebsite.com.well-known/acme-challenge/HYF32MIOUUkTqAWsHSSEHUc6fjtyANk9opr0AXiR1Nc it should show the page with content.
Now go back to terminal and press ENTER
It will show something like this
015-12-20 21:39:07,277:WARNING:letsencrypt.plugins.manual:Self-verify of challenge failed.
and then repeat with second host with www you put in. Repeat the steps as above creating the second file in the same folder in Cpanel. Check the links and press ENTER again .
Now it will make you certificates and show:
IMPORTANT NOTES:
-
Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/mywebsite/fullchain.pem.
Your cert will expire on 201?-0?-??. To obtain a new version of the
certificate in the future, simply run Let’s Encrypt again.
-
If you like Let’s Encrypt, please consider supporting our work by:
Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
Now you should just open the files with text editor copy it and fill in certificate fields in the Cpanel
That is it I hope this help to people who are not into all this programing stuff.