Watch HTTPS lock a page

Check the server’s certificate, then watch the order stay locked as it crosses the network.

Theory Intermediate Certificates · Encryption ~8 min
The idea

A certificate, then a locked order

The browser will open https://shop.example/pay and send the order 2 pens. How a page is fetched already found the server. This simulation starts at the HTTPS lock.

A digital certificate is a signed note from a certificate authority. This browser trusts CompSimu CA. The certificate names the site and includes the site’s public key. The matching private key stays on the server.

The browser creates a session key and locks it with the public key. Only the private key can open that lock. Both sides then lock the order with the session key. Encryption means the network sees a locked message, not the words 2 pens.

TipA real handshake sends more messages. The two jobs stay the same. Locking with the public key and opening with the private key is asymmetric encryption. Using one shared session key both ways is symmetric encryption.
ExampleOne order
order.txtHTTPS
site         shop.example
page         /pay
order        2 pens
authority    CompSimu CA
public key   on the certificate
private key  stays on the server

Try the secure connection, then the rejected certificate.

Interactive

Run the simulation

Look at the client, the server, and the network. An arrow is one message. The network box says Readable or Locked.

Step 0 / 0
https.txtSequence
Client · network · serverdemo
Ready
Shortcuts: Space play/pause · → step · ← back · R reset
Try it yourself

Put the secure steps in order

Click steps from the pool to build the handshake. Click a chosen step to remove it.

Your order
Click to add
Ready
Place all six steps in the order of a secure connection.
Remember

Two jobs

The certificate names the server. The session key keeps the page private.

Certificate

Who is the server?

The certificate names the site and carries the public key. The browser trusts the authority that signed it. A different name means stop.

Key pair

Public lock, private open

The public key locks the session key. Only the private key on the server opens it. The private key never crosses the network.

Session key

The order stays locked

After both sides hold the session key, the order and the page travel locked. The network can see the message. It cannot read 2 pens.