How I think HTTPS works when sending data from server to client:
-Server has 1 public, 1 private key.
-Client has access to the server's public key and not it's private key.
-Client has no keys of its own.
-Server uses its public key to encrypt data and sends it to the client. Client then uses the same public key to decrypt the message.
Is this how it works when the server sends data to the client? How does a server encrypt the data it sends to its clients? Are there a set of public and private keys for both devices?
I understand how the data sent from the client to server would be secure. Client encrypts data with the public key which then can only be decrypted with the private key and nothing else. But from my understanding, the client has no private and public keys of its own, so how does HTTPS work again?