At 7:53 I incorrectly said that the server sends the public key and private key obviously that is not correct it was just a slip. It only sends the public key and the information. The private key is only known to the server. I explain this fully here What are SSL/TLS Certificates? Why do we Need them? and How do they Work? kzbin.info/www/bejne/qGLRe4dsaKd5h5I
@misternormL3 жыл бұрын
Is the only reason to buy a certificate that you're accessing data over a wan and say you don't have reservations about it inside the network?
@dragonsan75773 жыл бұрын
I was just about to a ask you the same. Thanks for pinning the same. Like your stuff found you yesterday and been watching your stuff. Subbed and thanks for your hard work.
@Tech-geeky2 жыл бұрын
haha..opps... You'd be owned right there. Funny guy.. Never saw someone who explains certificates in a humorous way before (there's a first for everything)
@cromBumny Жыл бұрын
You should have just made a new video without the slip of a tounge
@donatoaz4 жыл бұрын
let me go ahead and say that without fancy animations or graphics, just your hand-shaking-thing you were able to very well convey the explanation. thanks!
@hnasr4 жыл бұрын
Donato Azevedo thanks Donato! 🙏
@aidangoetzinger90502 жыл бұрын
This video was literally so helpful. We really need more people who teach like you in computer science.
@robertsedgewick12664 жыл бұрын
"We don't ask what it is... we ask WHY does it exist?" Great approach, excellent content. Thanks for sharing!
@hnasr4 жыл бұрын
Exactly!
@Wetcarl4 жыл бұрын
My thoughts exactly! I believe that knowing what issue arose helps to gain understanding.
@aswinivayyala5118 Жыл бұрын
Did not lose my attention for 1 sec..it was quite deeply informative and engaging
@henrynwosu62779 ай бұрын
Man, Man, Man!!! You described the problem first. Then, you described the solution. Giving us enough context to understand why the tool exists. Instead of just jumping into the usual cliche way of "explaining" rhese kinds of stuff by watereing in down and basically explaining nothing. No fancy animations, no useless "fun" "non technical" explainations. Just raw fact. Thanks a lot for your empathy.❤❤❤
@everythingtech51584 жыл бұрын
Ok 2 things that are very wrong: 1- the server that needs a certificate never sends the private key to the certificate authority. 2- to verify a certificate you don't encrypt and compare. You actually decrypt the signature of the certificate authority using the CA's public key so you get the hash and then you hash the certificate and compare the two, the one you calculated by hashing the contents of the certificate and the one you got from decrypting the signature. If these values match then it's verified. And I am omitting here the chain of authority like you did in the video. Hence I am considering the certificate authority is the root CA.
@LoayAl-Said-j8p8 ай бұрын
Thanks buddy, He made a video and clarified that it's a slip suggest the video for them so they know in detail Thanks
@DavidLouda-i4k9 күн бұрын
I came for the explanation of these steps "You actually decrypt the signature of the certificate authority using the CA's public key " which I didn't get. How do you decrypt something by a public key? Even if we use the word "verify", what can you do .. "encrypt" it again? puzzles me ..
@DavidS-dw1wv3 жыл бұрын
Brilliant explanation - thank you! Really clear and I appreciate how you make it animated and interesting.
@Tech-geeky2 жыл бұрын
I never saw certificates explained by hand-waving before
@emmanueligbokwe75033 жыл бұрын
Hello Hussein, you said the CA encrypts the server's information as well as its public key with the CA's private key to issue it a certificate and the client even though trusts the CA verifies the server's certificate by using the public key of the CA to encrypt the information in the server's certificate and then compares it with the part the CA encrypted. How would they match when the CA uses it's private key for encryption and the client uses the CA's public key for encrypting the content of the server's certificate
@Leao_da_Montanha3 ай бұрын
one minute in and I'm already liking your charisma
@archirnobenz3 жыл бұрын
New to the channel, 20 seconds in. I'm already so intrigued by your energy. The explanation is top-notch too, no jargons, no beat around the bush, just straight-up simple straightforward explanation
@bwesnofske2 жыл бұрын
Good stuff here. I love the 'why' approach to teaching with the real life example. To solidify the knowledge you add the memorable story about Kazakhstan. Thanks for this
@PratikJain44 жыл бұрын
One good thing from 2020 is that I discovered this channel, full of useful information !
@hnasr4 жыл бұрын
❤️❤️ thank you Pratik! And welcome to the community
@KrishnaJaju243 жыл бұрын
Completely hooked to your channel. Every topic that you bring out a video on is something that I was always curious but did not get time to read about it. Also, very well explained. Thanks a lot!
@Dom-zy1qy2 ай бұрын
I liked the video as soon as you said the "we don't ask what it is, we ask why it exists"
@AdelAlMajed3 ай бұрын
Your way of explaining "why?" is a unique approach these days compared with others who are wasting our time on how to do things without actually understanding them. But still, there is an opportunity for improvement; I wish you had drew the process instead of distracting our attention by imagining the situation and following your hands. In my opinion, that would be much better. Anyway, your effort is much appreciated. Thanks.
@rayeshimel51024 жыл бұрын
You Description are so good.. Many video I watch but nobody can't completely explain about this but now clear about this. Thanks.
@chandramohanjagtap13004 жыл бұрын
Just a single word Excellent explanation 🙏
@hnasr4 жыл бұрын
Thanks a lot 😊
@RandomAlias13 жыл бұрын
Amazing work, @Hussein. Just hand gestures are more than enough. Very well explained. Keep it up!
@hnasr3 жыл бұрын
😍
@generalhummel86356 ай бұрын
perfect , i like your style dude diving into details keep going
@MDARIFULISLAMMilon2 ай бұрын
Super storytelling, amazing!!
@PigeonLyfe2 жыл бұрын
Top tier video, literally watched it through and through. Thank you!
@sixelephants4 жыл бұрын
New subscriber here, glad I found your channel. Informative and Thorough.
@hnasr4 жыл бұрын
Thank you and welcome to the channel! ❤️ I try to balance thoroughness with simplicity its a struggle .. thank you glad your enjoying the content
@ugodemy5288 Жыл бұрын
Absolutely awesome ! Very well explained and I loved the Kazakhstan anecdote to illustrate the problem that could happen. Thank you so much !
@jeffreytello5893 жыл бұрын
Just wanted to say thank you for this explanation. I was having a hard time understanding but you have made it very clear!
@toby________toby3 жыл бұрын
you're fantastic!! I can't wait for your videow to absolutely blow up, great quality
@aatifnazar82033 жыл бұрын
Simply wow. Tons of knowledge in a single video and the perfect way of explaining them.
@DJDAntoine6 ай бұрын
Great high level breakdown!
@komeilmehranfar Жыл бұрын
Maaaaan, That was crazy simple explaination. Enjoyed it. Thanks a lot.
@xxErmis4 жыл бұрын
Your content is amazing!
@moniminx_shorts3 жыл бұрын
I am blessed to get your videos.. If helped me a lot in my career and my personal journey
@moniminx_shorts3 жыл бұрын
Hi, thanku for giving me heart. I have a question 🙋.. Can u plz tell me the public and private keys are generated when and where its stored. And how they are generated.. Plz.. Its been months since nobody has answered my question
@zahramaslavi36179 ай бұрын
Very helpful topic! Please post more about this subject :)
@juanmaflyer4 жыл бұрын
Excellent video bro! Thanks! :)
@hnasr4 жыл бұрын
Juan Manuel Lomonaco
@prabeshsharma40397 ай бұрын
Simple and easy to understand; please keep it up!! 👍👍
@dhiasalah3373 Жыл бұрын
you just made things simple.good job!
@IrelandsSon19834 жыл бұрын
Thanks for this video. Im learning about this in school right now and was having a hard time understanding it but you cleary explained the process. These textbooks go a little off track on some of these things lol!
@hnasr4 жыл бұрын
Glad it helped! All the best ❤️
@RookieRavenАй бұрын
Hey, here coz I understand CAs and certificates, at the same time I don't. Nice vid helped me get to 100%
@lokeshbangalore73193 жыл бұрын
Very well explained, thank you Hussein.
@Nestro12449 ай бұрын
You know, that was actually a good explenation. You got a like and a new subscriber.
@Lopez96182 жыл бұрын
Thank you for the explanation!
@claushellsing4 жыл бұрын
Perhaps the companies could store their public Keys in some kind of blockchain, that way we wouldn't relay in Root authorities, of course that will have some cons aswell
@MohakKant3 жыл бұрын
In my naive understanding of Blockchain, I would think that would make the web really slow?
@ianjharris3 жыл бұрын
Great video, thank you for taking the time to make it.
@KonekoPurrrfection2 ай бұрын
Love the hand talky talky
@osama_momani32674 жыл бұрын
2:10 No, TLS uses two different Asymmetric keys; public key to encrypt and private key to decrypt 7:45 What! hell no. Private key must never be shared, otherwise you broke the main concept of the SSL/TLS.
@mostafaelgayar4 жыл бұрын
For your first point, I am afraid you're not entirely correct because TLS actually uses both asymmetric and symmetric encryption during a TSL Handshake. The second point, yes you're correct, but it is probably just a slip of the tongue.
@cagefighter582 жыл бұрын
Dude youre awesome! Thanks a bunch for this video!
@l.ashershimshonburrows70272 жыл бұрын
Excellent! Thank you! One question: What stops the man-in-the-middle from taking the certificate he recieves from google and passing it on to the client?
@shwetakhetre1767 Жыл бұрын
Really helpful video. Excellent and clear explanation. Just subscribed ur channel, continue to create more such videos 👍
@fakfatkids18122 жыл бұрын
Beautiful explanation thanks!
@svalyavasvalyava9867 Жыл бұрын
amazing explanation, thank you ☺️
@johne_weak4 жыл бұрын
Very nice explanation. Easy to understand. Thank you
@techlegend13105 ай бұрын
bro, u r an absolute bless ... u have a nack ,thank u for saving my day
@deepakfialok5 ай бұрын
Great video I suggest the use of graphics too to make people who are more visual
@caiosantos66893 жыл бұрын
very realistic scneraios and didatical ty a lot hello from brazil
@slaweknos748 Жыл бұрын
Amazing video !
@jurgular Жыл бұрын
Hussein, thank you for your videos I've been watching a few of them last few days and noticed today in your background you have a bunch of programming books. How useful would you say it is reading books to truly understand a concept vs just either just getting dug in the problem or watching videos etc.? E.g. lets say there is a concept I really need to understand in Azure and how to setup certificates, key rotation and be able to setup some form of automation testing. Now I have such limited knowledge on everything that entails.. when do you think is a good idea to just slow down and pick a book up rather than attack the problem head on always? This might be a video idea for you!
@janmaijaysinghbisen87993 жыл бұрын
so then vpn can also be called middle man ?
@umitkoc33753 жыл бұрын
I tried to connect a TOP OPC UA Server with UA Expert Client. I do the certificates by using OpenSSL. I didn`t use an intermediate certificate, just the root, which signs the server cert and the server signs the client cert. The connection is being recognized, because a pop up window appears stating that the connection was recognized. But once I click on the connect button in UA Expert an error occurs saying: Error: UaSessionPrivate::activateSession - can't find X509IdentityToken in endpoint description. Thank you for your feedback if possible.
@EuroWanderlustMuddasar2 жыл бұрын
very well explained
@issamzgybi97612 жыл бұрын
great explanation thank youu
@HQTamilKingdom3 жыл бұрын
Thanks for the video.
@JuiceManTech3 жыл бұрын
So even with an Asymmetric key using both public and private on both ends can the information still be intercepted as explained or was this lesson in reference to symmetric single key encryption?
@lokeshwarank12774 жыл бұрын
Hey Hussein, Thanks for your great content, I have a question here, might be a bit basic. We don't get the unencrypted data from the server right, how does the client generate the encrypted data with the public key of the certificate authority?
@hnasr4 жыл бұрын
This is done through TLS handshake, (hopefully I understood the question) kzbin.info/aero/PLQnljOFTspQW4yHuqp_Opv853-G_wAiH-
@subhamagarwal56324 жыл бұрын
I have a question here, not sure if that sounds silly. What if someone breaks in middle while we are connecting certificate authority for verification?
@KingKong-zq4mp4 жыл бұрын
There is a possibility for that to happen.
@johndoe-ms8oi3 жыл бұрын
Man in the middle of the man attack
@JenniferRodriguez-hx6bz4 жыл бұрын
great explanation - thank you!
@abdulazeez.98 Жыл бұрын
The example of Kazakhstan helped me understand the whole topic 😂
@yonahcitron22611 ай бұрын
great explanation
@allrise718 ай бұрын
At 9:19 you incorrectly said "Encrypt the content" while it's a Decryption process from your end (from the client's end/the message receiver), and Re-Hashing afterword's for comparing purposes... so you can ensure the integrity and authenticity of the digital certificate or the message you have received from Google in your example. @Hussein Nasser
@josephjones55662 жыл бұрын
I could be mistaken but it may be wise to apply Preventative maintenance efforts when it comes to the CMOS battery. Again I could be misunderstanding but if the CMOS battery fails or the NTP server, this may require manual peer list to align with the domain controllers. Are these concerns? Maybe a good discussion you can shine light on? I’m guessing locking out all end user accounts will allow to re-sync. Is this paranoia? Or do I have the right idea?
@gokulakrishnan15993 жыл бұрын
Great explanation...
@kevinruder96523 жыл бұрын
Hi Hussein. Thanks for the video. I'm not sure I completely understand the certificate verification part. I understood it as if I need to validate the certificate that is encryped with googles public key and the CA private key. How does that vertification happen? How do I end up with a certificate that is equivalent to that of the one signed by googles public key and the CA private key when I don't have the CA private key?
@1-minutetips109 Жыл бұрын
Can we share zscaler root certificate to anyone??
@Mahi0x003 жыл бұрын
What was that boom at 13:19
@khaledsalah1146 Жыл бұрын
Thank you very much about this video, it explained a lot as other explanation didn't give technical explanation about how this works and also specially that you giving example which made it much easier to understand. at 9:25 does we use public key to encrypt or decrypt?
@YazanAlaboudi Жыл бұрын
Thanks Hussein for all of this. Helps a lot! Can you (or anyone reading this) expand on why the man-in-the-middle can't just forward the certificate provided by Google to impersonate Google for example. That's the only piece im missing!
@mosup50073 жыл бұрын
Man you are awesome
@rt-yc1op Жыл бұрын
@hnasr, can you help me pls? I am opening exe file with 7zip and have .tls (empty file in Windows CRLF encoding) and CERTIFICATE ( file in Macintosh CR encoding, where all symbols messed, except strings indicating urls to .crl and CA names) Can you reproduct the same on your exe and explain what this .tls stands for? And how to decode CERTIFICATE?
@abhitejamandava1619 Жыл бұрын
What if there happens to be a MITM attack between google server and certificate authority and the attacker gets certificate sent by CA to google?
@AbdullahAlMuzaki-pe6wb Жыл бұрын
best explanation still
@leonardocorso36542 жыл бұрын
Great video. I have one question, why can't google themselves provide a certificate? For example, if they encrypt a file with their private key and send it back to you and then you use their public key to decrypt the file. Since you're using their public key to decrypt the file, that means that only the person who had the private key could have encrypted that message. I understand this might be difficult to implement because instead of keeping track of a few CA public keys you would need to locate the public key of each endpoint you were communicating with.
@kushalkarmani30762 жыл бұрын
But how do you know the public-private key pair used to encrypt the file was of Karen or Google?
@kushalkarmani30762 жыл бұрын
As you said" you would need to locate the public key of each endpoint you were communicating with", this is what we do with existing flow. Google does share its public key with us with each request, but to prove that the public key truly belongs to Google, we check it with Certificate Authority.
@leonardocorso36542 жыл бұрын
@@kushalkarmani3076 And how can we be certain that the public key is of the CA? Just how an attacker might act as google, can they not act as a CA and claim that Googles certificate is legit? If the CA is acting just as a database, can't google have their own repository showcasing their legit public/private key?
@leonardocorso36542 жыл бұрын
@@kushalkarmani3076 I re-watched the video and caught the explanation. For anyone else who was thinking this; basically he said that the CA certificates are at the app/OS level and trusted by the system itself. As such, from what I interpreted the certificate from the CA is not established via a handshake but already on the device. Please correct me if I am mistaken.
@pedrobb73 жыл бұрын
How can I learn more about this and other similar topics? Any recommended books?
@דודלוי-ק9ה4 жыл бұрын
Wow 🥳thet was clarify a lot Thank u very much...pleased u can explain about certificate root?? I don't actually understand it...
@hnasr4 жыл бұрын
דוד לוי thanks! I actually explained it in What are SSL/TLS Certificates? Why do we Need them? and How do they Work? kzbin.info/www/bejne/qGLRe4dsaKd5h5I. this video in details
@a7medsayed2010 Жыл бұрын
If I on my browser can get google signed certificate, can't man-in-the-middle get it too and forward it back to the client?
@hnasr Жыл бұрын
They can but it will be pointless as they can’t change anything in the encrypted messages. the moment they try to change anything in the message or intercept traffic they have to prove they own the private key of google which they don’t and as a result the client will reject the message
@saad.834 жыл бұрын
Good topic!
@javedalishaikh44723 жыл бұрын
Very helpful..thanks for doing these.. do you have book recommendations for various topics like - security, networking, distributed systems, microservices etc. basically for everything related to backend.
@palaniappanrm62774 жыл бұрын
I have a doubt wrt to CA and their digital signature. So website owner gives some Information to CA, CA encrypts that with its private key. Now the websites will send the browser the same information along with the content which CA encrypted. Now you said the browser will encrypt the information with CA public key and compare it with the CA encrypted content and trust if both are same right? My doubt is does asymmetric key work like this? Public key - PU Private key - PR Content - C So, C encrypted with PU == C encrypted with PR ??
@hnasr4 жыл бұрын
Good question! So private key encrypts and public key decrypts (it can also do the reverse too) The trick we do to verify the signature by decrypting the signature with the CA public key and comparing it to the content. If it matches we know its good because only the CA could have made that signature with the corresponding private key
@palaniappanrm62774 жыл бұрын
@@hnasr awesome. cleared now. And I gave you a request in LinkedIn. Hope you'll accept :)
@aspirohk3558 Жыл бұрын
Please make a video on how they are created and also about root certificate aaaaand certification with regards to antivirus and application software
@morganfree1004 жыл бұрын
This question really bugging me ,is the first ever transaction when I type google.com or anyother site will it be encrypted? Can the domain name be identified during the first request before key exchange?
@hnasr4 жыл бұрын
NAVANEETHA KANNAN i think you will enjoy this video it answers your questions What happens when type google.com into your browser address box and hit enter? kzbin.info/www/bejne/mpmXYWmFZ9uSZ8U
@ViniciusVieira134 жыл бұрын
Can someone recommend me some good books on this?
@kallikantzaros4 жыл бұрын
google it man
@caronc32902 жыл бұрын
My new android comes with root CA from China, Hong Kong, Taiwan, Japan, and a few other countries. Wouldn't I want to shut those off? Why would my device need to trust their site?
@adityakumarsingh68292 жыл бұрын
Great informative video Hussein; I got a doubt about how servers generate public and private keys which are already not registered with CA? suppose "server A" generated a key pair and sent it to the CA(only public key, as your pinned comment says) then "server B" generated the same key pair and send it to the CA, how CA will handle this ambiguity? I don't know what I am saying is even correct...
@YazanAlaboudi Жыл бұрын
So the private/public keys are only established by the CA. They use their private key to provide you with a signed certificate based on your company inputs. When a client downloads the certificate from some server trying to establish an SSL, the client immediately starts off by validating the signed certificate by using the public key of the associated CA. This is almost (if not completely), identical process of how JWTs work
@stanislavpetkov74084 жыл бұрын
Nice work, I am researching how I could have intranet web service using https. It seems you can’t have this kind of certificates for in-house servers. But I don’t want to have the traffic as plain text. How this could be done... Should I make my CA and add a certificate to each and every device, or there is something better? Thanks
@joerajeev2 жыл бұрын
Poor Karen... even "man in the middle" has become "Karen in the middle" now :D
@rawanal-zahrani32053 жыл бұрын
What is the difference between Offline Root CA & Subordinate CA ?
@Artem-fc1cv2 жыл бұрын
How CA verifies that those who claiming to be google are actually guys from google and not random guy claiming to be google?
@hnasr2 жыл бұрын
Google Cert will be signed by trusted CA which is signed by a trusted ROOT cert installed on our machines. Hackers won’t be able to get a fake google cert signed by a trusted CA (though It did happened before to a CA called diginotar, they got banned out)
@hassanawodi58884 жыл бұрын
Major fear about cert auth is how easy will it be for govts to ask for keys of entities that are of interest to govt? Is that possible?
@hnasr4 жыл бұрын
If that was ever discovered (which I am not sure how yet) the CA will be untrusted immediately. OCSP will kick in. If trusted CA provided its private key to a government and that government started issuing certificates on behalf of the CA the government still need to intercept the traffic somehow by implementing a L7 Proxy which users need to specify to access the internet
@Littlefair73 жыл бұрын
Is my certificate of authority downloadable? If yes what is it called on FMSCA portal? Thanks
@santoshakhilesh4 жыл бұрын
Thanks for explaining this topic. In many videos you have talked about Relational DB can be scaled for reads , Can you make a video to explain this by example and also how MySQL global transaction actually work by an example , thanks for your awesome work.
@duwayneforbes6172 Жыл бұрын
I have a Skills Proficiency certificate for Basic Plumbing... Those that mean I'm a Plumber?
@danisharora17312 жыл бұрын
THANKYOU.
@dermotgilmartin18183 жыл бұрын
Can i know which cif i can trust ? Mayve get rid off ones i don't trust , was getting ass holes bugging me
@VivekYadav-ds8oz3 жыл бұрын
You can check which CA your device trusts in settings usually.