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.
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.
Run the simulation
Look at the client, the server, and the network. An arrow is one message. The network box says Readable or Locked.
Put the secure steps in order
Click steps from the pool to build the handshake. Click a chosen step to remove it.
Two jobs
The certificate names the server. The session key keeps the page private.
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.
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.
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.