The TLS 1.3 handshake
In TLS 1.3 the client's hello carries a key share and the server answers with its own share, its certificate and a signature over the handshake so far, so after one round trip both sides hold fresh keys, the client knows it reached the real server, and everything after is encrypted and authenticated.