what if the hacker provided the public key for https connection?

Open link in next tab

How HTTPS works

https://www.youtube.com/watch?v=w0QbnxKRD0w

Follow me on Twitter: https://twitter.com/omkarscomicsDo you know that your Internet connection can be tapped just like a telephone line? Your conversation w...

So this video explains how https works. What I don't get is what if a hacker in the middle pretended to be the server and provided me with the box and the public key. wouldn't he be able to decrypt the message with his private key? I'm not a tech expert, but just curious and trying to learn.