2 ms·
> you should be able to just fully encrypt the entire packet by using the certificate (public key) of the website The public key is not used (unless you are do
by tialaramex 4y ago
> you should be able to just fully encrypt the entire packet by using the certificate (public key) of the website
The public key is not used (unless you are doing RSA key exchange which is terrible and you should stop, this is no longer possible in TLS 1.3) to encrypt anything.
Modern schemes, including TLS 1.3 and thus HTTP/3 do ECDH key agreement and then the public key is used for signatures to authenticate your peer.