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

  • @danielroop4123
    @danielroop41232 жыл бұрын

    Thanks for the great content Tony!

  • @thodorispaparrigopoulos8542
    @thodorispaparrigopoulos8542 Жыл бұрын

    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

    8 ай бұрын

    Do you mean we do not need to setup automated renewal after running those codes?

  • @thodorispaparrigopoulos8542

    @thodorispaparrigopoulos8542

    8 ай бұрын

    @@sserwangabenam9273 after about 3 months you got to re update. Again with the same command

  • @jordanjones6131
    @jordanjones61312 жыл бұрын

    Thanks Tony very helpful 😁

  • @ebiscaia
    @ebiscaia3 жыл бұрын

    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

    2 жыл бұрын

    thank u so much

  • @kaveengoonawardane9651
    @kaveengoonawardane96512 жыл бұрын

    Super useful video. Thanks mate!

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    You're welcome!

  • @healthyloaf
    @healthyloaf3 жыл бұрын

    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

    @TonyTeachesTech

    3 жыл бұрын

    Awesome, thanks so much Dan for sharing :)

  • @redtoblackmarketing
    @redtoblackmarketing Жыл бұрын

    Great content man :-)

  • @bigbigder
    @bigbigder3 жыл бұрын

    It really works, thanks!!

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    You're welcome!

  • @SuperMu3ath
    @SuperMu3ath7 ай бұрын

    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!

  • @emmersonmax8184
    @emmersonmax81843 жыл бұрын

    Good video, I struggled for hours before getting to this video and like magic sorted in 5min

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Awesome, happy to hear that

  • @davidcorona644
    @davidcorona6442 жыл бұрын

    God bless you for making this video.

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    🙏

  • @clashking8427
    @clashking8427 Жыл бұрын

    Thanks a lot

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    You're welcome!

  • @ohmyads3d
    @ohmyads3d2 жыл бұрын

    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?

  • @_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

    2 жыл бұрын

    ​@@TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    @@syedwajahatali2020 kzread.info/dash/bejne/mZyOuqiyedyxYdI.html

  • @TechWithBenam
    @TechWithBenam9 ай бұрын

    Nice one

  • @charlesderek7107
    @charlesderek71072 жыл бұрын

    How do you write this to execute by a bash script (no interactivity)

  • @khandakershahi
    @khandakershahi3 жыл бұрын

    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

    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

  • @cristcampos
    @cristcampos2 жыл бұрын

    Thanks!

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    You're welcome

  • @tommyrobe
    @tommyrobe3 жыл бұрын

    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!

  • @bobsigny
    @bobsigny8 ай бұрын

    I only have access to Cloudflare account can I still do this?

  • @mauwiks
    @mauwiks Жыл бұрын

    I can't seem to find the apache2 folder

  • @paulfitz4861
    @paulfitz48613 жыл бұрын

    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

  • @NelsonIzack
    @NelsonIzack3 жыл бұрын

    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.

  • @kak9989
    @kak99893 жыл бұрын

    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?

  • @fahadfaysal9626
    @fahadfaysal96263 жыл бұрын

    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
    @Mr92Metallica2 жыл бұрын

    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

    Жыл бұрын

    I have the same problem, do you find a solution ?

  • @quickfingers5982
    @quickfingers59823 жыл бұрын

    These steps will work with AWS EC2?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Definitely should work

  • @hamzasamlali4805
    @hamzasamlali48053 жыл бұрын

    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?

  • @trangoul8898
    @trangoul88983 жыл бұрын

    Hey! Can I do it if the domain name, and the server is on different network? And the server is behind NAT.

  • @TonyTeachesTech

    @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

    @trangoul8898

    3 жыл бұрын

    @@TonyTeachesTech Yep, I figured out allready, and it works, thank you.

  • @jillsarkozi1595
    @jillsarkozi15952 жыл бұрын

    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

  • @mrpoliticalguy5602
    @mrpoliticalguy56023 жыл бұрын

    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

  • @josetellez4270
    @josetellez42703 жыл бұрын

    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.

  • @ddrci88
    @ddrci882 жыл бұрын

    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"

  • @abdelmadjidgueffaz9561
    @abdelmadjidgueffaz95612 жыл бұрын

    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

  • @rexbenedict8474
    @rexbenedict84743 жыл бұрын

    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.

  • @Xpressd
    @Xpressd Жыл бұрын

    I would be lost without tony /bowdown

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    :)

  • @andersonjoseph4879
    @andersonjoseph48793 жыл бұрын

    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 kzread.info/dash/bejne/eIyW07FvYcK0hsY.html

  • @andersonjoseph4879

    @andersonjoseph4879

    3 жыл бұрын

    @@TonyTeachesTech Thanks so much super helpful

  • @syedwajahatali2020
    @syedwajahatali20202 жыл бұрын

    ​ #TonyTeachesTech Pls provide the video to Automate the SSL Sertificate each time as soon as it expires

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    kzread.info/dash/bejne/mZyOuqiyedyxYdI.html

  • @abrarsnewworldorder
    @abrarsnewworldorder3 жыл бұрын

    How do I find the ssh root access to the server?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    The default ssh username is root and the password is the root password that you created before deploying the server :)

  • @abrarsnewworldorder

    @abrarsnewworldorder

    3 жыл бұрын

    @@TonyTeachesTech Thanks a ton!

  • @salexkorsan8790
    @salexkorsan87903 жыл бұрын

    is it wildcard ssl or not ???

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    No. For wildcard, see this kzread.info/dash/bejne/qnealrmektmpdps.html

  • @kak9989
    @kak99893 жыл бұрын

    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

  • @GoldenDaawn
    @GoldenDaawn2 жыл бұрын

    apt-get install certbot python-certbot-apache is not run

  • @mortezajafaree7984

    @mortezajafaree7984

    Жыл бұрын

    apt-get install certbot python3-certbot-apache

  • @josetellez4270
    @josetellez42703 жыл бұрын

    Is not working for me.

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    What is the error you get?

  • @vaheedmohammad9243
    @vaheedmohammad92433 жыл бұрын

    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

  • @rishabhgarg3112
    @rishabhgarg31123 жыл бұрын

    i am getting SERVFAIL error!!!!!

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Uh oh

  • @rishabhgarg3112

    @rishabhgarg3112

    3 жыл бұрын

    @@TonyTeachesTech Solved

  • @brentcrowley3119
    @brentcrowley31193 жыл бұрын

    I got failed authorization procedure. These steps won't work for everyone. Nice try though.

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Sorry to hear that

  • @govtjobsnotifications2791
    @govtjobsnotifications27913 жыл бұрын

    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

Келесі