How to Install a Free SSL Certificate with Let's Encrypt (on Nginx and Apache websites)
Тәжірибелік нұсқаулар және стиль
Learn how to install a free Let's Encrypt SSL certificate with Certbot for your website on an Apache or Nginx web server. Although this video tutorial demonstrates how to do this with WordPress on an Ubuntu Linode server, the same concept applies on pretty much any other web hosting provider where you have ssh root access and a domain name.
One-click WordPress installs from $5/mo 👉 ttt.do/LinodeLetsEncrypt ($100 free credit applied after sign up with my affiliate link)
Find more at tonyteaches.tech
Check out my vlog channel @TonyFlorida
#letsencrypt #certbot #wordpress #linode
Пікірлер: 111
Thanks for the great content Tony!
Essentially after you have set up your nginx or apache server you execute 1) sudo apt install certbot python3-certbot-nginx 2) sudo certbot --nginx (dash dash) You fill the questions being asked and then it is automated to update the nginx configuration file and then you are good to go! Thanks a lot for your video. Saved me hours of searching.
@sserwangabenam9273
8 ай бұрын
Do you mean we do not need to setup automated renewal after running those codes?
@thodorispaparrigopoulos8542
8 ай бұрын
@@sserwangabenam9273 after about 3 months you got to re update. Again with the same command
Thanks Tony very helpful 😁
Some considerations: - The package now is called python3-certbot-apache - If someone is doing this at home, make sure to set the firewall to open port 443 (ufw for ubuntu) and NAT port forwarding from port 443 to the internal ip address and the port in which the the website is hosted, normally also 443). Thanks, Tny
@TonyTeachesTech
3 жыл бұрын
Thanks for the tips
@miroslavmilutinovic4333
2 жыл бұрын
thank u so much
Super useful video. Thanks mate!
@TonyTeachesTech
2 жыл бұрын
You're welcome!
Thank you so much man. I have been stuck trying to install namecheap's ssl onto my contabo VPS with winSCP and I couldn't transfer any of my crt and ca_bundle files. I couldn't even create a file and edit/save my cert on my server via winSCP or Putty. I then moved on to VNC viewer to try and create/edit crt and ca_files via Vim editor. But then I was stuck again trying to access my system clipboard. No matter how many forums or KZread videos I visited for vim, I couldnt solve the issue I was facing. I really appreciate your video man! You got a sub! Also if anyone is using Ubuntu and can't do the certbot installation, try "sudo apt install -y certbot python3-cerbot-apache" hope you success!
@TonyTeachesTech
3 жыл бұрын
Awesome, thanks so much Dan for sharing :)
Great content man :-)
It really works, thanks!!
@TonyTeachesTech
3 жыл бұрын
You're welcome!
Very helpful, easy and straight to the point! I liked the fact that you showed the config file in /etc/apache2/ ... What if I want to get a wildcard certificate? can you please do a tutorial on that? thanks a lot!
Good video, I struggled for hours before getting to this video and like magic sorted in 5min
@TonyTeachesTech
3 жыл бұрын
Awesome, happy to hear that
God bless you for making this video.
@TonyTeachesTech
2 жыл бұрын
🙏
Thanks a lot
@TonyTeachesTech
Жыл бұрын
You're welcome!
I believe you mentioned namecheap, does it work for namecheap shared hosting package? Do you need to have delicate ip to install the ssl cert as you shown here?
Thanks for the video! I'd love to have that cron job tutorial on automating the https get together.
@TonyTeachesTech
3 жыл бұрын
Check out the blog post I have linked for that tutorial
@syedwajahatali2020
2 жыл бұрын
@@TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires
@TonyTeachesTech
2 жыл бұрын
@@syedwajahatali2020 kzread.info/dash/bejne/mZyOuqiyedyxYdI.html
Nice one
How do you write this to execute by a bash script (no interactivity)
Hi Tony, You use Linode for wordpress hosting and ssl but how about the email server? In shared hosting we got webmail system is there anything like that? Thank you for your tutorial.
@TonyTeachesTech
3 жыл бұрын
No, linode does not have email. You would have to set that up yourself. I personally use email forwarding like this kzread.info/dash/bejne/hJaIlJqRYNrPgto.html which allows me to send and receive emails for my domain name from within my Gmail inbox for the cost of the domain name itself
Thanks!
@TonyTeachesTech
2 жыл бұрын
You're welcome
Thank you so much! It works Great! :) *Just remind to do the "tab"-pressing in the conf-file, otherwise the reroute from http to https will not work, looks like a bug in certbot! Thank you :)
@TonyTeachesTech
3 жыл бұрын
You're welcome!
I only have access to Cloudflare account can I still do this?
I can't seem to find the apache2 folder
Thank you for the video very easy to follow. Now my site is secure!!!! XD
@TonyTeachesTech
3 жыл бұрын
You're welcome Paul!
@salexkorsan8790
3 жыл бұрын
@@TonyTeachesTech it works on subdomain also or not ??
@TonyTeachesTech
3 жыл бұрын
@@salexkorsan8790 Yep
Thanks for the video! I encounter problem on 4:14 when i run command certbot --apache output " *the requested apache plugin does not appear to be installed* " How can i resolve this? Appreciate.
@TonyTeachesTech
3 жыл бұрын
Did you install python-certbot-apache? sudo apt-get install python-certbot-apache
@NelsonIzack
3 жыл бұрын
@@TonyTeachesTech thanks for the reply.. Yes! I run the command. You can see it here nimb.ws/oLY2rp for your reference.
Can you show how to disable https redirect for a folder on apache 2 ?
@TonyTeachesTech
3 жыл бұрын
What is your use case for doing this?
Cant it be done on Hostinger's "Business Shared Hosting" plan. I have SSH access but can't implement your exact process.
@TonyTeachesTech
3 жыл бұрын
Sorry I am not familiar with Hostinger
Hi ! Thanks for the tutorial, but after doing that I'm having a redirection error ERR_TOO_MANY_REDIRECTS. What should I do ? Having that my wordpress is inside a docker container and that I'm using reverse proxy configuration.
@TonyTeachesTech
2 жыл бұрын
Sorry I have never run into that before. I would get rid of the cert and try again
@allanmartin7031
Жыл бұрын
I have the same problem, do you find a solution ?
These steps will work with AWS EC2?
@TonyTeachesTech
3 жыл бұрын
Definitely should work
Hi man after installing the SSL certificate, i can no longer access the Admin dashboard. Can you please advise on that issue
@TonyTeachesTech
3 жыл бұрын
What is the error you get?
Hey! Can I do it if the domain name, and the server is on different network? And the server is behind NAT.
@TonyTeachesTech
3 жыл бұрын
As long as your domain name is publicly accessible, then you will be able to use Let's Encrypt to get your free SSL cert.
@trangoul8898
3 жыл бұрын
@@TonyTeachesTech Yep, I figured out allready, and it works, thank you.
Can this work when I don't host my domian only point it to a vps servers with no control panel but I've set A record and NS records.I'm unable to get SSL install on my domain.
@TonyTeachesTech
2 жыл бұрын
Yes this should work with that setup
Hi I got a question is ngrok more secure than port forwarding and more immune to ddos.
@TonyTeachesTech
3 жыл бұрын
I'm not familiar with ngrok, sorry
@mrpoliticalguy5602
3 жыл бұрын
@@TonyTeachesTech ok
How can I get the "wordpress.conf" file?
@TonyTeachesTech
3 жыл бұрын
You can create this file. With an Apache web server, you can have multiple configuration files that each correspond to a separate web site.
Hello Guys, All command here and i fixed some place : 1.apt install certbot python3-certbot-apache -y we install python3 because pyhton depracete it 2.certbot --apache 3.ufw app list check your ufw if listed 4.ufw app info "Apache Full" 5.ufw allow in "Apache Full"
Hi man after installing the SSL certificate, i can no longer access the Admin dashboard. Can you please advise on that issue This site cannot be rach even if I open the HTTPS port 443
@TonyTeachesTech
2 жыл бұрын
Hmm I’m not sure what that’s the case
So Tony. What's up. I installed the certificate on the 18.04 ubuntu nginx. Certificate is valid. Tlv is 1.2,1.3. but it's saying some contents are still not secure. I have no idea how to resolve it. I'm stuck. It's an e-commerce site.
@TonyTeachesTech
3 жыл бұрын
Have you tried to access on another device or in a private window? Sometimes cache is to blame.
@rexbenedict8474
3 жыл бұрын
@@TonyTeachesTech your technique works. I reinstalled and configurated nginx again. Thanks Tony.
I would be lost without tony /bowdown
@TonyTeachesTech
Жыл бұрын
:)
Hello, i tried to "ssh root@my website" from my MacBook terminal BUT it says "ssh: connect to host mywebsite.com port 22: Operation timed out" I have been trying to fix it but couldn't ... what can I do please?
@TonyTeachesTech
3 жыл бұрын
You'll need to make sure your website hosting company has enabled ssh access on your server and that you have the credentials to access it. Sorry for not making this clear in the video. What hosting company do you use?
@andersonjoseph4879
3 жыл бұрын
@@TonyTeachesTech Namecheap, but is there a way I can enable it manually?
@TonyTeachesTech
3 жыл бұрын
@@andersonjoseph4879 For ssh on Namecheap, please follow the instructions here kzread.info/dash/bejne/eIyW07FvYcK0hsY.html
@andersonjoseph4879
3 жыл бұрын
@@TonyTeachesTech Thanks so much super helpful
#TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires
@TonyTeachesTech
2 жыл бұрын
kzread.info/dash/bejne/mZyOuqiyedyxYdI.html
How do I find the ssh root access to the server?
@TonyTeachesTech
3 жыл бұрын
The default ssh username is root and the password is the root password that you created before deploying the server :)
@abrarsnewworldorder
3 жыл бұрын
@@TonyTeachesTech Thanks a ton!
is it wildcard ssl or not ???
@TonyTeachesTech
3 жыл бұрын
No. For wildcard, see this kzread.info/dash/bejne/qnealrmektmpdps.html
I did all the steps well and my web site ka1000.xyz does not have the secured icon for ssl certificate
@kak9989
3 жыл бұрын
I solved the problem but when I type ka1000.xyz I’m redirected to my website without the ssl certificate and when I type ka1000.xyz I’m redirected to my website with the ssl certificate
@kak9989
3 жыл бұрын
I don't understand what I did wrong plz help Thanks !
@kak9989
3 жыл бұрын
nevermind I found the solution by changing the .htaccess file
@TonyTeachesTech
3 жыл бұрын
Happy you figured it out
apt-get install certbot python-certbot-apache is not run
@mortezajafaree7984
Жыл бұрын
apt-get install certbot python3-certbot-apache
Is not working for me.
@TonyTeachesTech
3 жыл бұрын
What is the error you get?
How to install a free Lets Encrypt SSL certificate from Apache Server to another server?
@TonyTeachesTech
3 жыл бұрын
You would need to install the SSL certificate directly on the other server
@vaheedmohammad9243
3 жыл бұрын
@@TonyTeachesTech I don't have access to other server. Is it possible to setup SSL from my server to other server?
@TonyTeachesTech
3 жыл бұрын
@@vaheedmohammad9243 No sorry
i am getting SERVFAIL error!!!!!
@TonyTeachesTech
3 жыл бұрын
Uh oh
@rishabhgarg3112
3 жыл бұрын
@@TonyTeachesTech Solved
I got failed authorization procedure. These steps won't work for everyone. Nice try though.
@TonyTeachesTech
3 жыл бұрын
Sorry to hear that
Make my websites ssl
@TonyTeachesTech
3 жыл бұрын
This video will do it for you (assuming you have ssh access with the proper permissions)
@govtjobsnotifications2791
3 жыл бұрын
@@TonyTeachesTech actually i m getting stuck and not able to figure out i can give access to u my server by putty or we can connect on gmeet so that it can done it is hardly 5 minutes for u..only