Building a NodeJS HTTP/2 Server and Secure it with Let’s Encrypt

preview_player
Показать описание
In this Video I will build an HTTP/2 Server with NodeJS and certify it with Let’s Encrypt.

0:00 Intro
1:20 HTTP/2 Node JS Code
6:20 Generate Self-Signed Certificate
13:00 Open Port 443/80
14:00 Create DNS Domain
14:50 HTTP/2 Let's Encrypt

Source Code

🏭 Software Architecture Videos

💾 Database Engineering Videos

🛰 Network Engineering Videos

🏰 Load Balancing and Proxies Videos

🐘 Postgres Videos

🚢Docker

🧮 Programming Pattern Videos

🛡 Web Security Videos

🦠 HTTP Videos

🐍 Python Videos

🔆 Javascript Videos

Support me on PayPal

Become a Patreon

Stay Awesome,
Hussein
Рекомендации по теме
Комментарии
Автор

Your "ask Why" strategy has really gotten into me these days. Such a great and valid approach.

rahul.r
Автор

I've been scouring youtube for 2 days for a good tutorial on making secure web servers. Thank you!

jnos
Автор

Your videos are amazing and detailed to understand. I am sharing them with my team they are very useful. Please make a video on clean code architecture Thanks in advance

vamsiaila
Автор

You are overpowered, nice work! Thanks

vibekdutta
Автор

Its really a knowledgeable video but its serving only one route, However if i have multiple routes and VERB how do I do it. Please explain let say I have GET /products, GET /users

PrashantNirgun
Автор

20:20 have you talked about best practice for renewing certificate in any vids yet?

guidedog
Автор

This is great tutorial.. now i begin to understand

paantu
Автор

Thank you, brother, I want to make a medium clone in HTTP2 this video is really helpful.

Nash-
Автор

Great Video as always! I know that you include the cert generation command in your github repo, but just incase anyone wants it while following the video, I'm going to re-post it here:

openssl req -x509 -newkey rsa:4096 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-private.pem -out localhost-cert.pem

palmpixiplus
Автор

First of appreciation for all your good work.

I however want to to transfer my SocketIO code which is currently running on HTTPS 1.1 to HTTP2 and I am using express. You have defined everything regarding setting up HTTP2 Socket really well. But you did not define how to use Socket on and emit events in HTTP2. I have been searching for it since 2 days but no luck. Kindly help me out.

Thank you so much. Waiting for your reply.

masroorejaz
Автор

Hey Hussein, great video as always. Just wanted to point out, isn’t exposing your public ip unsafe?

backup
Автор

Dude, first, thank you for sharing your knowledge. I know I may be late, but... This tutorial still works? I saw videos and pages where they use just the .createServer so, I don't know if that is a recent version or if you have an actual version of this video, please let me know. Sorry if this is just asking for, but, this is the only tutorial that seems to work. Have a good day!

jaazielcrb
Автор

idea for episode, cuz I need explanation, Multicast DNS

EmperorTerran
Автор

i just got openssl through chocolately and added it to my path. I try to run this command and I just get this really annoying line 'req: use -help for summary'

collinhansen
Автор

TLS 1.2 needs public key to be sent back to client, so that they can encrypt symmetric key they generated with that server's public key for the server to decrypt. Does TLS 1.3 needs public key too? It uses Diffie Hellman. Only certificate won't be enough? Any video about how the public/private key differentiations between TLS 1.2 and 1.3 ?

palaniappanrm
Автор

Hussein great video! I've been running a profiler on my node app and for some reason it crashes when I use http2 vs node's https API. Any thoughts why that might happen? Terminal says: Emitted 'error' event on TLSSocket

JohnnysaidWhat
Автор

but how to add route suppose GET /users

agxxyz
Автор

Still no native support of http2 in express

KunalMukherjee
Автор

I'm wondering, can I use my old android phone as a host and can actually run a web server whose domain points to my phone's public ip.

viraj_singh
Автор

Hi,
i am trying to upgrade from HTTP/1.1 to HTTP/2.

getting _http_incoming.js:113
if (this.socket.readable)
node version : v14.15.4
i tried with both express version 4 and 5

But it's workingt with spdy.
Can anyone please help me out to unblock on this.

khushbukumari
join shbcf.ru