How to Install a Free SSL Certificate with Let's Encrypt (on Nginx and Apache websites)

  Рет қаралды 48,989

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

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/LinodeL... ($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

Пікірлер: 109
@thodorispaparrigopoulos8542
@thodorispaparrigopoulos8542 2 жыл бұрын
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
@sserwangabenam9273 Жыл бұрын
Do you mean we do not need to setup automated renewal after running those codes?
@thodorispaparrigopoulos8542
@thodorispaparrigopoulos8542 Жыл бұрын
@@sserwangabenam9273 after about 3 months you got to re update. Again with the same command
@ebiscaia
@ebiscaia 3 жыл бұрын
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
@TonyTeachesTech 3 жыл бұрын
Thanks for the tips
@miroslavmilutinovic4333
@miroslavmilutinovic4333 3 жыл бұрын
thank u so much
@healthyloaf
@healthyloaf 3 жыл бұрын
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 KZbin 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
@TonyTeachesTech 3 жыл бұрын
Awesome, thanks so much Dan for sharing :)
@SuperMu3ath
@SuperMu3ath 10 ай бұрын
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!
@tommyrobe
@tommyrobe 3 жыл бұрын
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
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@_zh3ro_
@_zh3ro_ 3 жыл бұрын
Thanks for the video! I'd love to have that cron job tutorial on automating the https get together.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Check out the blog post I have linked for that tutorial
@syedwajahatali2020
@syedwajahatali2020 3 жыл бұрын
​@@TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@syedwajahatali2020 kzbin.info/www/bejne/nZm9iXmvft5-Z9E
@davidcorona644
@davidcorona644 3 жыл бұрын
God bless you for making this video.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
🙏
@ohmyads3d
@ohmyads3d 2 жыл бұрын
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?
@danielroop4123
@danielroop4123 2 жыл бұрын
Thanks for the great content Tony!
@clashking8427
@clashking8427 2 жыл бұрын
Thanks a lot
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@khandakershahi
@khandakershahi 4 жыл бұрын
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
@TonyTeachesTech 4 жыл бұрын
No, linode does not have email. You would have to set that up yourself. I personally use email forwarding like this kzbin.info/www/bejne/iJO3Y2uOZdyciNk 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
@kaveengoonawardane9651
@kaveengoonawardane9651 2 жыл бұрын
Super useful video. Thanks mate!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@jordanjones6131
@jordanjones6131 2 жыл бұрын
Thanks Tony very helpful 😁
@bigbigder
@bigbigder 4 жыл бұрын
It really works, thanks!!
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
You're welcome!
@TechWithBenam
@TechWithBenam Жыл бұрын
Nice one
@redtoblackmarketing
@redtoblackmarketing 2 жыл бұрын
Great content man :-)
@bobsigny
@bobsigny 11 ай бұрын
I only have access to Cloudflare account can I still do this?
@mauwiks
@mauwiks Жыл бұрын
I can't seem to find the apache2 folder
@josetellez4270
@josetellez4270 3 жыл бұрын
How can I get the "wordpress.conf" file?
@TonyTeachesTech
@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.
@cristcampos
@cristcampos 3 жыл бұрын
Thanks!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@NelsonIzack
@NelsonIzack 3 жыл бұрын
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
@TonyTeachesTech 3 жыл бұрын
Did you install python-certbot-apache? sudo apt-get install python-certbot-apache
@NelsonIzack
@NelsonIzack 3 жыл бұрын
@@TonyTeachesTech thanks for the reply.. Yes! I run the command. You can see it here nimb.ws/oLY2rp for your reference.
@paulfitz4861
@paulfitz4861 3 жыл бұрын
Thank you for the video very easy to follow. Now my site is secure!!!! XD
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome Paul!
@salexkorsan8790
@salexkorsan8790 3 жыл бұрын
@@TonyTeachesTech it works on subdomain also or not ??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@salexkorsan8790 Yep
@charlesderek7107
@charlesderek7107 2 жыл бұрын
How do you write this to execute by a bash script (no interactivity)
@quickfingers5982
@quickfingers5982 3 жыл бұрын
These steps will work with AWS EC2?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Definitely should work
@fahadfaysal9626
@fahadfaysal9626 3 жыл бұрын
Cant it be done on Hostinger's "Business Shared Hosting" plan. I have SSH access but can't implement your exact process.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry I am not familiar with Hostinger
@Mr92Metallica
@Mr92Metallica 2 жыл бұрын
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
@TonyTeachesTech 2 жыл бұрын
Sorry I have never run into that before. I would get rid of the cert and try again
@allanmartin7031
@allanmartin7031 2 жыл бұрын
I have the same problem, do you find a solution ?
@hamzasamlali4805
@hamzasamlali4805 3 жыл бұрын
Hi man after installing the SSL certificate, i can no longer access the Admin dashboard. Can you please advise on that issue
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What is the error you get?
@jillsarkozi1595
@jillsarkozi1595 2 жыл бұрын
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
@TonyTeachesTech 2 жыл бұрын
Yes this should work with that setup
@rexbenedict8474
@rexbenedict8474 3 жыл бұрын
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
@TonyTeachesTech 3 жыл бұрын
Have you tried to access on another device or in a private window? Sometimes cache is to blame.
@rexbenedict8474
@rexbenedict8474 3 жыл бұрын
@@TonyTeachesTech your technique works. I reinstalled and configurated nginx again. Thanks Tony.
@abdelmadjidgueffaz9561
@abdelmadjidgueffaz9561 2 жыл бұрын
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
@TonyTeachesTech 2 жыл бұрын
Hmm I’m not sure what that’s the case
@kak9989
@kak9989 3 жыл бұрын
Can you show how to disable https redirect for a folder on apache 2 ?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What is your use case for doing this?
@trangoul8898
@trangoul8898 4 жыл бұрын
Hey! Can I do it if the domain name, and the server is on different network? And the server is behind NAT.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
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
@trangoul8898 4 жыл бұрын
@@TonyTeachesTech Yep, I figured out allready, and it works, thank you.
@andersonjoseph4879
@andersonjoseph4879 3 жыл бұрын
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
@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
@andersonjoseph4879 3 жыл бұрын
@@TonyTeachesTech Namecheap, but is there a way I can enable it manually?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@andersonjoseph4879 For ssh on Namecheap, please follow the instructions here kzbin.info/www/bejne/fInFooJsZsSBjMU
@andersonjoseph4879
@andersonjoseph4879 3 жыл бұрын
@@TonyTeachesTech Thanks so much super helpful
@mrpoliticalguy5602
@mrpoliticalguy5602 3 жыл бұрын
Hi I got a question is ngrok more secure than port forwarding and more immune to ddos.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I'm not familiar with ngrok, sorry
@mrpoliticalguy5602
@mrpoliticalguy5602 3 жыл бұрын
@@TonyTeachesTech ok
@ddrci88
@ddrci88 2 жыл бұрын
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"
@Xpressd
@Xpressd Жыл бұрын
I would be lost without tony /bowdown
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
:)
@salexkorsan8790
@salexkorsan8790 3 жыл бұрын
is it wildcard ssl or not ???
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No. For wildcard, see this kzbin.info/www/bejne/rnTJZYqbl9t2fJo
@abrarsnewworldorder
@abrarsnewworldorder 4 жыл бұрын
How do I find the ssh root access to the server?
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
The default ssh username is root and the password is the root password that you created before deploying the server :)
@abrarsnewworldorder
@abrarsnewworldorder 4 жыл бұрын
@@TonyTeachesTech Thanks a ton!
@kak9989
@kak9989 3 жыл бұрын
I did all the steps well and my web site ka1000.xyz does not have the secured icon for ssl certificate
@kak9989
@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
@kak9989 3 жыл бұрын
I don't understand what I did wrong plz help Thanks !
@kak9989
@kak9989 3 жыл бұрын
nevermind I found the solution by changing the .htaccess file
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Happy you figured it out
@syedwajahatali2020
@syedwajahatali2020 3 жыл бұрын
​ #TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
kzbin.info/www/bejne/nZm9iXmvft5-Z9E
@Karyodom
@Karyodom 2 жыл бұрын
apt-get install certbot python-certbot-apache is not run
@mortezajafaree7984
@mortezajafaree7984 2 жыл бұрын
apt-get install certbot python3-certbot-apache
@brentcrowley3119
@brentcrowley3119 3 жыл бұрын
I got failed authorization procedure. These steps won't work for everyone. Nice try though.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry to hear that
@rishabhgarg3112
@rishabhgarg3112 3 жыл бұрын
i am getting SERVFAIL error!!!!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Uh oh
@rishabhgarg3112
@rishabhgarg3112 3 жыл бұрын
@@TonyTeachesTech Solved
@josetellez4270
@josetellez4270 3 жыл бұрын
Is not working for me.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What is the error you get?
@vaheedmohammad9243
@vaheedmohammad9243 3 жыл бұрын
How to install a free Lets Encrypt SSL certificate from Apache Server to another server?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You would need to install the SSL certificate directly on the other server
@vaheedmohammad9243
@vaheedmohammad9243 3 жыл бұрын
@@TonyTeachesTech I don't have access to other server. Is it possible to setup SSL from my server to other server?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@vaheedmohammad9243 No sorry
@govtjobsnotifications2791
@govtjobsnotifications2791 3 жыл бұрын
Make my websites ssl
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
This video will do it for you (assuming you have ssh access with the proper permissions)
@govtjobsnotifications2791
@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
How to Install an SSL Certificate on Linode with Let's Encrypt
10:10
Tony Teaches Tech
Рет қаралды 14 М.
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 44 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 129 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 55 МЛН
How to create a valid self signed SSL Certificate?
25:01
Christian Lempa
Рет қаралды 361 М.
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Wolfgang's Channel
Рет қаралды 799 М.
Create Let's Encrypt SSL with Ubuntu
8:42
Evermight Systems
Рет қаралды 20 М.
How to Create an Always Free Website on the Oracle Cloud
27:39
Tony Teaches Tech
Рет қаралды 142 М.
Let's Encrypt Explained: Free SSL
15:04
That DevOps Guy
Рет қаралды 127 М.
Apache Basics Tutorial | How To Install and Configure Apache2
20:45
Akamai Developer
Рет қаралды 299 М.