HTTPS Flow
Last updated
Last updated
When visiting a page that uses HTTPS:
Browser attempts to resolve the domain and redirects to the webserver.
The first request is sent to port 80, the server will notice this and redirect to port 443. When this happens you will get a 301 Moved Permanently response code.
Client sends a "client hello" packet which gives information about itself.
Server responds with "server hello" and sends its SSL certificate.
The client will verify the key/certificate and then send its own.
Encrypted handshake is initiated, and encrypted communication can begin.
Note: Depending on the circumstances, an attacker may be able to perform an HTTP downgrade attack, which downgrades HTTPS communication to HTTP, making the data transferred in clear-text. This is done by setting up a Man-In-The-Middle (MITM) proxy to transfer all traffic through the attacker's host without the user's knowledge. However, most modern browsers, servers, and web applications protect against this attack. (HTB)