Q2
Explain the HTTPS Handshake.
💬Answer
HTTPS overlays HTTP on top of the SSL/TLS protocol to encrypt communication:
- Client Hello: Client sends supported TLS versions, cipher suites, and a random string.
- Server Hello: Server responds with the selected TLS version, selected cipher suite, another random string, and its SSL Certificate.
- Authentication: Client validates the SSL certificate signature against its list of trusted Certificate Authorities (CAs).
- Key Exchange:
- Client generates a Pre-Master Secret, encrypts it using the server's public key from the certificate, and sends it to the server.
- Server decrypts the Pre-Master Secret using its private key.
- Generate Session Keys: Both client and server use the Pre-Master Secret and the initial random strings to calculate a symmetric Session Key.
- Handshake Finished: Both sides send encrypted verification messages confirming that all future messages will be encrypted using the symmetric Session Key.
Related Networking Questions
View All NetworkingQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio