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
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
This is by far the most complete example I've found on this subject, thanks for sharing
@AntonPutra
2 жыл бұрын
Welcome!
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
Жыл бұрын
Welcome!
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
7 ай бұрын
Thanks Cronerstat!
been scratching my head at this for days can't believe its that simple, thanks Anton!
@AntonPutra
2 ай бұрын
thanks
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.
Thanks for the video, exactly what was I looking for. Short and detailed 👍👍👍
👉 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
⏱️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
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
2 жыл бұрын
Thank you!
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
2 жыл бұрын
Thanks!
@darn2926
11 ай бұрын
Hello i think am having this issue , can you tell me how to resolve it. Thanks in advance
Great video!, exactly what I was looking for. Thank you!
@AntonPutra
Жыл бұрын
Thanks Eddie!
God Tier Video! Teaches wayy more than in the title! SUperb in best practices!
@AntonPutra
11 ай бұрын
Thanks!
Best explanation straight to the point, thanks!
@AntonPutra
Ай бұрын
thank you!
You are my hero bro! you saved my day. Thanks for the amazing content
@AntonPutra
2 жыл бұрын
Thanks Sergi!
excellent detailed tutorial, thanks!👍
@AntonPutra
Жыл бұрын
Welcome!
still great help today, thank you
@AntonPutra
11 ай бұрын
welcome
Really well explained thanks bunches!
@AntonPutra
Жыл бұрын
Thanks Ryan!
big thank men , god bless youu
thanks for sharing this
Thank you................ You made my day. perfect to the point. just follow along and it will work.
@AntonPutra
3 ай бұрын
My pleasure
amazing video, thank you for this!
@AntonPutra
Жыл бұрын
My pleasure!
Great tutorial. Thank you!
@AntonPutra
2 жыл бұрын
You're very welcome!
helped me a lot, thank you!!
@AntonPutra
2 жыл бұрын
Glad to hear that!
It helped me a lot thank you !
Great - Thank you for sharing.
@AntonPutra
2 жыл бұрын
You're welcome :)
Perfect Video. Thanks 🙌🙌
@AntonPutra
Жыл бұрын
You're welcome!
Great tutorial!! Thank you
@AntonPutra
10 ай бұрын
Thanks!
Great video and explanation, thanks
@AntonPutra
2 жыл бұрын
Thanks Hasan!
Really helpful, thank you so much!
@AntonPutra
Жыл бұрын
Thanks Mandeep!
Thank you. This video helped me.
@AntonPutra
2 жыл бұрын
Thanks Nikhil!
Great video!
Really helped me!!
served my day
Бро, красава лучший! Просто тигррр! Всё четко и понятно, еще и ссылку на команды оставил просто легенда!
@AntonPutra
5 ай бұрын
spasibo )
Amazing explanation
@AntonPutra
Ай бұрын
thank you!
Really thank you for this video
@AntonPutra
2 жыл бұрын
welcome!
many thanks!
@AntonPutra
2 жыл бұрын
Welcome!
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
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".
Thanks for video. in other tutorials no one told about include sites-enabled to nginx.conf
@AntonPutra
2 жыл бұрын
You're welcome!
❤❤❤❤🔥🔥
@AntonPutra
28 күн бұрын
❤️
Thanks
@AntonPutra
8 ай бұрын
Thank you!
Great
@AntonPutra
10 ай бұрын
Thanks
Thank u, братик)
@AntonPutra
Жыл бұрын
welcome :)
great tutorial.
@AntonPutra
Жыл бұрын
Thank you!
thank you!
@AntonPutra
2 жыл бұрын
You're welcome!
THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU❤❤❤❤
@AntonPutra
10 ай бұрын
welcome :)
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
2 жыл бұрын
Thanks, no you can't use certbot for private domains. You need to create your own CA and issue certificates for your domains.
good!
@AntonPutra
Ай бұрын
thanks!
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
Жыл бұрын
thanks for the feedback, but I don't remember where in the video I used that phrase =)
Umbeliveble...
Hi Anton, if possible please try to use certbot to install certificate on a private ec2 instance where nginx is installed
@AntonPutra
2 жыл бұрын
private means no internet access or you have NAT?
@sumanthsai4015
2 жыл бұрын
@@AntonPutra using alb , iam doing installation of nginx into private ec2.for that I need ssl
thanks a lot
@AntonPutra
11 ай бұрын
welcome!
Cool, btw are u from indonesia?
@AntonPutra
Жыл бұрын
nope, but i hear that a lot =)
Waiting for customer support slack app with node.js 🤗👍
@AntonPutra
2 жыл бұрын
Someday😊
What if I don't use port 80? Can I configure certbot with another port? (Ex: port 8022)?
@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.
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
Жыл бұрын
looks like the server is not running. Check with "nc -vz " for example "nc -vz google.com 80"
No infrastructure as a code ? :) Thank you for great work!
@AntonPutra
2 жыл бұрын
Thanks, I hope by Thursday I'll make one, EKS + Secrets Manager :)
How to connect nodejs app running on port 3000 & 3001 to subdomain api & hello respectively ?
@AntonPutra
2 жыл бұрын
you can forward to any backend service and any port, you can declare it in nginx conf
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
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
3 ай бұрын
Seems you have very good knowledge with Linux command. Have you make a tutorial about it? Thanks@@AntonPutra
Четко! Ёклмн
@AntonPutra
Жыл бұрын
spasibo)
Hi, I need make backup something, to make a install new ?
@AntonPutra
Жыл бұрын
you can clone your existing nginx config for selected endpoint just in case if you want to restore
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
2 жыл бұрын
1. Press Esc 2. Type :x 3. Press Enter
@AntonPutra
2 жыл бұрын
or you can use nano text editor, it maybe easier
@treshongriffin4161
2 жыл бұрын
@@AntonPutra do you have discord? i need some help
@AntonPutra
2 жыл бұрын
@@treshongriffin4161 I do - discord.gg/Wy5SPDSTjX you can describe the problem, I'll take a look later tonight
I just want to ask if this is a localhost or not
@AntonPutra
5 ай бұрын
it is
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
2 жыл бұрын
can you check if the nginx process is running? maybe you have errors, check the log
@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
2 жыл бұрын
@@AntonPutra problem was that port 443 was not open in ec2 security group. Now its working. Again, many many thanks.
@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.
Does it enable HSTS?
@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
норм
@AntonPutra
9 ай бұрын
thanks lol
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
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