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
Thank you for your comment 🙏 That IP is dynamic and changes with reboot of the router. the worse thing ppl can do is DOS me (which I have protection) against and all the ports are immediately closed anyway after I make the video. People can also know the city I live from the IP in which is already public knowledge.
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
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!
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
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.
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
John J Interesting, I would listen to the error event for more info. Which node version you have? I know the node team said there are some bugs on this modules still
@@hnasr node v14. Silly me, still had a response.end('hello world') hanging around messing things up. Now i'm getting decent results on the profiler: 500ms a request (100 request concurrency, 5ms per single request) total time for 1000 requests=4sec...even with my endpoint running and returning a cookie encryption and decipher method.
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 ?
Palaniappan RM thats true only if TLS 1.2 uses RSA for key exchange. TLS 1.2 can be actually configured to use Diffie Hellman, while TLS 1.3 forces us to use Diffe Hellman in key exchange.
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'
I will probably just get a real one with let's encrypt certbot, but I would appreciate if anybody knows why this happened, because I'm probably not the only one
Viraj Singh haha sure! Internet Routers actually understand the HTTP 1.1 and HTTP 1.0 traffic. They read it and even sometimes add their own headers, expect some headers, etc.. to do that they follow the old http 1 protocol and they expect things to look certain way. So it we exposed HTTP/2 on port 80 which is a very different protocol internally with streams . The routers will say hey its 80! I know HTTP and start expecting some stuff only to find a completely different internal segments and tcp packets so they freak out and either close the connection or even worse corrupt content. Browsers quickly realized this and forced H2 on TLS so routers don’t even look.. You might get lucky and hit routers that behave and not touch http traffic but internet is the wild wild west
Shawn Ali salam! Yes my plan is to use flask .. I did a video on tornado 🌪 here Writing a Python HTTP Server with Tornado (Explained with 4 Examples) th-cam.com/video/DQNW9qhl4eA/w-d-xo.html
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.
Your "ask Why" strategy has really gotten into me these days. Such a great and valid approach.
I've been scouring youtube for 2 days for a good tutorial on making secure web servers. Thank you!
You are incredible! So friggin smart!
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
You are overpowered, nice work! Thanks
Wow this is awesome ! Thank you !
Beautiful - much appreciated
This is great tutorial.. now i begin to understand
Thank you, brother, I want to make a medium clone in HTTP2 this video is really helpful.
Nice let us know how it goes 🙏
Hey Hussein, great video as always. Just wanted to point out, isn’t exposing your public ip unsafe?
Thank you for your comment 🙏 That IP is dynamic and changes with reboot of the router. the worse thing ppl can do is DOS me (which I have protection) against and all the ports are immediately closed anyway after I make the video. People can also know the city I live from the IP in which is already public knowledge.
just amazing 😮
Great video. Saved my day❤️
Thanks so much for this.
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
Jon Spencer thanks Jon!
20:20 have you talked about best practice for renewing certificate in any vids yet?
http/2 for Apache and nginx Next ??
nice 🚀
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!
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
Thanks a lot!
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.
but how to add route suppose GET /users
Still no native support of http2 in express
Work nodejs on windows?
idea for episode, cuz I need explanation, Multicast DNS
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
John J Interesting, I would listen to the error event for more info. Which node version you have? I know the node team said there are some bugs on this modules still
@@hnasr node v14. Silly me, still had a response.end('hello world') hanging around messing things up. Now i'm getting decent results on the profiler: 500ms a request (100 request concurrency, 5ms per single request) total time for 1000 requests=4sec...even with my endpoint running and returning a cookie encryption and decipher method.
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 ?
Palaniappan RM thats true only if TLS 1.2 uses RSA for key exchange. TLS 1.2 can be actually configured to use Diffie Hellman, while TLS 1.3 forces us to use Diffe Hellman in key exchange.
@@hnasr But still we will get the public key from CA (Let's encrypt), but we won't be using them in TLS 1.3 at all. Right?
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'
I will probably just get a real one with let's encrypt certbot, but I would appreciate if anybody knows why this happened, because I'm probably not the only one
Can you be more elaborate when you say routers freak out🤣. Thanks for all you efforts.
Viraj Singh haha sure! Internet Routers actually understand the HTTP 1.1 and HTTP 1.0 traffic. They read it and even sometimes add their own headers, expect some headers, etc.. to do that they follow the old http 1 protocol and they expect things to look certain way.
So it we exposed HTTP/2 on port 80 which is a very different protocol internally with streams . The routers will say hey its 80! I know HTTP and start expecting some stuff only to find a completely different internal segments and tcp packets so they freak out and either close the connection or even worse corrupt content.
Browsers quickly realized this and forced H2 on TLS so routers don’t even look..
You might get lucky and hit routers that behave and not touch http traffic but internet is the wild wild west
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.
Someone asked this question before stackoverflow.com/questions/36632649/running-node-js-on-android/41514825#41514825
Salam brother, would it be possible for you to make a similar tutorial in python?
Shawn Ali salam! Yes my plan is to use flask .. I did a video on tornado 🌪 here
Writing a Python HTTP Server with Tornado (Explained with 4 Examples)
th-cam.com/video/DQNW9qhl4eA/w-d-xo.html
Salam brother your a real gem in this field thank you
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.