How to Secure Nginx with Lets Encrypt on Ubuntu 20.04 with Certbot?

Ғылым және технология

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
► LinkedIn: / anton-putra
► Twitter/X: / antonvputra
► GitHub: github.com/antonputra
► Email: me@antonputra.com
▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
👉 [Playlist] Network Tutorials: • Network Tutorials
👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
👉 [Playlist] Database Tutorials: • Database Tutorials
=========
⏱️TIMESTAMPS⏱️
0:00 Intro
1:01 Create EC2 Instance in AWS Ubuntu 20.04 LTS
3:39 Install Nginx Ubuntu 20.04 LTS
6:06 Nginx Setup Server Block
9:25 Install Certbot on Ubuntu 20.04 LTS
10:23 Secure Nginx with Lets Encrypt on Ubuntu 20.04 LTS
=========
Source Code
🖥️ - GitHub: github.com/antonputra/tutoria...
#Letsencrypt #Nginx #Certbot

Пікірлер: 133

  • @AntonPutra
    @AntonPutra9 ай бұрын

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @douglasvalerio8880
    @douglasvalerio88802 жыл бұрын

    This is by far the most complete example I've found on this subject, thanks for sharing

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Welcome!

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

    Perfect tutorial! Installed on my instance along with the video, now my site is encrypted! You are just awesome Anton. Love from Sri Lanka

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Welcome!

  • @CalpachinoMrcroner
    @CalpachinoMrcroner8 ай бұрын

    THANKK YOUUUUUU I LOVE YOU I TOOK 16 HOURS WATCHING USELESS TUTORIALS USING OUTDATED NGINX THAT NEVER WORKED BUT YOURS WAS AMAZING THANK YOU

  • @AntonPutra

    @AntonPutra

    7 ай бұрын

    Thanks Cronerstat!

  • @lewisbrowne8799
    @lewisbrowne87992 ай бұрын

    been scratching my head at this for days can't believe its that simple, thanks Anton!

  • @AntonPutra

    @AntonPutra

    2 ай бұрын

    thanks

  • @dwiwahyudi9698
    @dwiwahyudi96984 ай бұрын

    I liked your video 3000 times, hahaha... Thank you very much for this tutorial, it is the most perfect tutorial for certbot and nginx, it really saves me a lot of time. I'll be sure to watch your other videos.

  • @OPPACHblu_channel
    @OPPACHblu_channel3 ай бұрын

    Thanks for the video, exactly what was I looking for. Short and detailed 👍👍👍

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

    👉 How to Manage Secrets in Terraform - kzread.info/dash/bejne/ZYJk1qmEp9molKQ.html 👉 Terraform Tips & Tricks - kzread.info/dash/bejne/aYdtltGOhNyYqpc.html 👉 ArgoCD Tutorial - kzread.info/dash/bejne/rHuixsmdd8SXhMY.html

  • @AntonPutra
    @AntonPutra2 жыл бұрын

    ⏱️TIMESTAMPS⏱️ 0:00 Intro 1:01 Create EC2 Instance in AWS Ubuntu 20.04 LTS 3:39 Install Nginx Ubuntu 20.04 LTS 6:06 Nginx Setup Server Block 9:25 Install Certbot on Ubuntu 20.04 LTS 10:23 Secure Nginx with Lets Encrypt on Ubuntu 20.04 LTS

  • @Gwen-mw3rs
    @Gwen-mw3rs2 жыл бұрын

    This is super amazing video !!! It was so difficult to get ssl from other blogs or youtube . this is simple and perfect thanks a lot

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thank you!

  • @Aidennification
    @Aidennification2 жыл бұрын

    Perfect tutorial! Only snag I ran into after installing the test certificates was the request timing out. Turns out, I hadn't enabled port forwarding on port 443, so be sure to double check!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks!

  • @darn2926

    @darn2926

    11 ай бұрын

    Hello i think am having this issue , can you tell me how to resolve it. Thanks in advance

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

    Great video!, exactly what I was looking for. Thank you!

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Thanks Eddie!

  • @sankalpmukim1052
    @sankalpmukim105211 ай бұрын

    God Tier Video! Teaches wayy more than in the title! SUperb in best practices!

  • @AntonPutra

    @AntonPutra

    11 ай бұрын

    Thanks!

  • @MM-nj4im
    @MM-nj4imАй бұрын

    Best explanation straight to the point, thanks!

  • @AntonPutra

    @AntonPutra

    Ай бұрын

    thank you!

  • @sergiboquerafuentes7134
    @sergiboquerafuentes71342 жыл бұрын

    You are my hero bro! you saved my day. Thanks for the amazing content

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks Sergi!

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

    excellent detailed tutorial, thanks!👍

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Welcome!

  • @jeffalomaniacemail2956
    @jeffalomaniacemail295611 ай бұрын

    still great help today, thank you

  • @AntonPutra

    @AntonPutra

    11 ай бұрын

    welcome

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

    Really well explained thanks bunches!

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Thanks Ryan!

  • @imedkharrat3754
    @imedkharrat37547 ай бұрын

    big thank men , god bless youu

  • @AbhishekSingh-cg3fx
    @AbhishekSingh-cg3fx6 ай бұрын

    thanks for sharing this

  • @savejshaikh3996
    @savejshaikh39963 ай бұрын

    Thank you................ You made my day. perfect to the point. just follow along and it will work.

  • @AntonPutra

    @AntonPutra

    3 ай бұрын

    My pleasure

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

    amazing video, thank you for this!

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    My pleasure!

  • @mukulrana1616
    @mukulrana16162 жыл бұрын

    Great tutorial. Thank you!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    You're very welcome!

  • @horseprofesseur7648
    @horseprofesseur76482 жыл бұрын

    helped me a lot, thank you!!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Glad to hear that!

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

    It helped me a lot thank you !

  • @Fayaz-Rehman
    @Fayaz-Rehman2 жыл бұрын

    Great - Thank you for sharing.

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    You're welcome :)

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

    Perfect Video. Thanks 🙌🙌

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    You're welcome!

  • @claudioooliveira
    @claudioooliveira10 ай бұрын

    Great tutorial!! Thank you

  • @AntonPutra

    @AntonPutra

    10 ай бұрын

    Thanks!

  • @hasanerken9604
    @hasanerken96042 жыл бұрын

    Great video and explanation, thanks

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks Hasan!

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

    Really helpful, thank you so much!

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Thanks Mandeep!

  • @nikhilkrishna9740
    @nikhilkrishna97402 жыл бұрын

    Thank you. This video helped me.

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks Nikhil!

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

    Great video!

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

    Really helped me!!

  • @barakadewise7200
    @barakadewise72003 ай бұрын

    served my day

  • @user-es4db3cb2m
    @user-es4db3cb2m5 ай бұрын

    Бро, красава лучший! Просто тигррр! Всё четко и понятно, еще и ссылку на команды оставил просто легенда!

  • @AntonPutra

    @AntonPutra

    5 ай бұрын

    spasibo )

  • @JS-vw7to
    @JS-vw7toАй бұрын

    Amazing explanation

  • @AntonPutra

    @AntonPutra

    Ай бұрын

    thank you!

  • @hemantharajanvenkatesan8220
    @hemantharajanvenkatesan82202 жыл бұрын

    Really thank you for this video

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    welcome!

  • @qwertyqwerty7101
    @qwertyqwerty71012 жыл бұрын

    many thanks!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Welcome!

  • @jakubvala4345
    @jakubvala43452 жыл бұрын

    Hi Anton, thanks for the video, it's really helpfull. One question though, is it possible to run it like you did on a linux server with docker/docker-compose?

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Yes, absolutely. Just mount the volume with the cert location to the docker container. If you run docker use '-v' flag or with compose "volumes".

  • @julesverne2125
    @julesverne21252 жыл бұрын

    Thanks for video. in other tutorials no one told about include sites-enabled to nginx.conf

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    You're welcome!

  • @josefu-san
    @josefu-san28 күн бұрын

    ❤❤❤❤🔥🔥

  • @AntonPutra

    @AntonPutra

    28 күн бұрын

    ❤️

  • @issahalabi99
    @issahalabi998 ай бұрын

    Thanks

  • @AntonPutra

    @AntonPutra

    8 ай бұрын

    Thank you!

  • @dileepnagendra8199
    @dileepnagendra819910 ай бұрын

    Great

  • @AntonPutra

    @AntonPutra

    10 ай бұрын

    Thanks

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

    Thank u, братик)

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    welcome :)

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

    great tutorial.

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    Thank you!

  • @salmanifrahim3245
    @salmanifrahim32452 жыл бұрын

    thank you!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    You're welcome!

  • @user-yr7cu9cl2k
    @user-yr7cu9cl2k10 ай бұрын

    THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU❤❤❤❤

  • @AntonPutra

    @AntonPutra

    10 ай бұрын

    welcome :)

  • @sureshkoppisetty6862
    @sureshkoppisetty68622 жыл бұрын

    Thank you Anton..... great video, its helped me lot...... quick question : Can i secure the domain which hosted internally with certbot ? if yes, pls tell me how....

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks, no you can't use certbot for private domains. You need to create your own CA and issue certificates for your domains.

  • @DolevDublon
    @DolevDublonАй бұрын

    good!

  • @AntonPutra

    @AntonPutra

    Ай бұрын

    thanks!

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

    TTL measures not in seconds it is the maximum number of redirects that can occur while your packets go from server to your computer

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    thanks for the feedback, but I don't remember where in the video I used that phrase =)

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

    Umbeliveble...

  • @sumanthsai4015
    @sumanthsai40152 жыл бұрын

    Hi Anton, if possible please try to use certbot to install certificate on a private ec2 instance where nginx is installed

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    private means no internet access or you have NAT?

  • @sumanthsai4015

    @sumanthsai4015

    2 жыл бұрын

    @@AntonPutra using alb , iam doing installation of nginx into private ec2.for that I need ssl

  • @harshpatel105
    @harshpatel10511 ай бұрын

    thanks a lot

  • @AntonPutra

    @AntonPutra

    11 ай бұрын

    welcome!

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

    Cool, btw are u from indonesia?

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    nope, but i hear that a lot =)

  • @akshaypant8883
    @akshaypant88832 жыл бұрын

    Waiting for customer support slack app with node.js 🤗👍

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Someday😊

  • @LukeHwarang
    @LukeHwarang7 ай бұрын

    What if I don't use port 80? Can I configure certbot with another port? (Ex: port 8022)?

  • @AntonPutra

    @AntonPutra

    7 ай бұрын

    As far as I remember, you can pass the HTTP-01 challenge only by using the standard port 80. However, I think it's possible with the DNS-01 challenge.

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

    My domain is connected with the server ip, using ping on the domain pings the server ip as expected. But when go to domain via browser it doesn't show the html, instead i get "connection refused" error

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    looks like the server is not running. Check with "nc -vz " for example "nc -vz google.com 80"

  • @sereose
    @sereose2 жыл бұрын

    No infrastructure as a code ? :) Thank you for great work!

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    Thanks, I hope by Thursday I'll make one, EKS + Secrets Manager :)

  • @rajusah3376
    @rajusah33762 жыл бұрын

    How to connect nodejs app running on port 3000 & 3001 to subdomain api & hello respectively ?

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    you can forward to any backend service and any port, you can declare it in nginx conf

  • @yoskokleng3658
    @yoskokleng36583 ай бұрын

    for google manage domain, Only your browser can access with that domain name or everyone also can access it? I am confusing that we can make our domain for free instead of buy for Hosting provider. thanks

  • @AntonPutra

    @AntonPutra

    3 ай бұрын

    Google domains is public host provider, but you still need to register your domain with someone on the internet. It cannot be free

  • @yoskokleng3658

    @yoskokleng3658

    3 ай бұрын

    Seems you have very good knowledge with Linux command. Have you make a tutorial about it? Thanks@@AntonPutra

  • @user-in4sj3ri8j
    @user-in4sj3ri8j Жыл бұрын

    Четко! Ёклмн

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    spasibo)

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

    Hi, I need make backup something, to make a install new ?

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    you can clone your existing nginx config for selected endpoint just in case if you want to restore

  • @treshongriffin4161
    @treshongriffin41612 жыл бұрын

    how do i save when i get to the deb and deb-src? im stuck there and trying to code pokt nodes and need help

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    1. Press Esc 2. Type :x 3. Press Enter

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    or you can use nano text editor, it maybe easier

  • @treshongriffin4161

    @treshongriffin4161

    2 жыл бұрын

    @@AntonPutra do you have discord? i need some help

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    @@treshongriffin4161 I do - discord.gg/Wy5SPDSTjX you can describe the problem, I'll take a look later tonight

  • @moamab4541
    @moamab45416 ай бұрын

    I just want to ask if this is a localhost or not

  • @AntonPutra

    @AntonPutra

    5 ай бұрын

    it is

  • @edwinvarghese
    @edwinvarghese2 жыл бұрын

    Hey thanks for the tutorial. Followed the same steps. but after adding the ssl certificate, website went down. I tried restarting nginx, enabled firewall with https nginx 443. But its still down. Anyone else faced similar issue?

  • @AntonPutra

    @AntonPutra

    2 жыл бұрын

    can you check if the nginx process is running? maybe you have errors, check the log

  • @edwinvarghese

    @edwinvarghese

    2 жыл бұрын

    @@AntonPutra nginx is running. errors from error.log -> signal process started and info from access.log -> "GET / HTTP/1.1" 301 178 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) . I guess its trying to redirect the request to http. (website was up and running when it was in http (when no ssl was added)). Now ufw is disabled as well.

  • @edwinvarghese

    @edwinvarghese

    2 жыл бұрын

    @@AntonPutra problem was that port 443 was not open in ec2 security group. Now its working. Again, many many thanks.

  • @Ramkumar-yd6eq

    @Ramkumar-yd6eq

    Жыл бұрын

    After installing it successfully,it is running but if i do docker-compose up it failing showing let'sencrypt not found.plz guide me to resolve this.

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

    Does it enable HSTS?

  • @AntonPutra

    @AntonPutra

    Жыл бұрын

    well, it does create redirect from 80 to 443, i don't remember about the header part. You can check in the server block

  • @user-ss5yp7yr2x
    @user-ss5yp7yr2x9 ай бұрын

    норм

  • @AntonPutra

    @AntonPutra

    9 ай бұрын

    thanks lol

  • @ahmedhaggag8360
    @ahmedhaggag836011 ай бұрын

    can you help me , i getting this error i use ubuntu 20.04 error: system does not fully support snapd: cannot mount squashfs image using "squashfs"

  • @AntonPutra

    @AntonPutra

    11 ай бұрын

    I think in new ubuntu releases they deprecated snap packages, try pip or apt sudo apt install python3-pip sudo -H pip3 install certbot askubuntu.com/questions/1278936/install-certbot-on-ubuntu-20-04

Келесі