gpt4 book ai didi

ssl - TLS记录层和握手层版本有什么区别

转载 作者:行者123 更新时间:2023-12-04 22:37:49 24 4
gpt4 key购买 nike

它们是网络上的一些帖子,谈论和围绕它,但没有解释差异和意义。一个 客户您好可以看到数据包具有记录层和握手协议(protocol)版本 - 0x0301 和 0x0303。它们之间有什么区别?当其中一个显示 1.0 而另一个显示 1.2 时,使用的是哪个 TLS 版本?

最佳答案

TLS 记录层版本是 1.0,因为 TLS 版本是根据客户端 hello 中提到的版本协商的。例如,如果客户端要求使用 1.2 并向服务器发送客户端问候,而服务器要求严格使用 1.3,则 TLS 记录永远不会知道将协商哪个版本。
因此,它使用 1.0 作为通用版本。
The RFC同样告诉你:

Earlier versions of the TLS specification were not fully clear onwhat the record layer version number (TLSPlaintext.version) shouldcontain when sending ClientHello (i.e., before it is known whichversion of the protocol will be employed). Thus, TLS serverscompliant with this specification MUST accept any value {03,XX} asthe record layer version number for ClientHello."

关于ssl - TLS记录层和握手层版本有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63559589/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com