ServerKeyExchange使用临时 Diffie-Hellman的目的是什么?在这种情况下,ClientHello广告的 EDH 和 EECDH(而不是匿名协议),以及TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA在其ServerHello.
根据RFC 5246,第 7.4.3 节:
This message will be sent immediately after the server Certificate
message (or the ServerHello message, if this is an anonymous
negotiation).
The ServerKeyExchange message is sent by the server only when the
server Certificate message (if sent) does not contain enough data
to allow the client to exchange a premaster secret. This is true
for the following key exchange methods:
DHE_DSS
DHE_RSA
DH_anon
我了解 RSA 用于身份验证(而不是密钥传输)。但由于使用了 Diffie-Hellman,双方都为决赛贡献了材料master_secret。因此,不需要允许客户更早地为premaster_secret.
ServerKeyExchange使用临时 Diffie-Hellman的目的是什么?