How HTTPS Keeps Your Data Secure: TLS 1.3 Handshake and Certificates
HTTPS is HTTP sent inside a TLS connection. When you open an https:// site, your browser and the server run a TLS 1.3 handshake: they agree keys using ephemeral Diffie-Hellman, the server proves its identity with a certificate signed by a trusted certificate authority, and both sides derive session keys.