HTTPS 握手何时发生?
我从各种来源了解到,HTTPS 握手是使用 HTTPS 最重要的部分。我在服务器之间内部使用 POST 来传递信息,并希望使用 HTTPS。我想知道实际的 HTTPS 握手持续/“保持开放”多久?是否为我发送到服务器的每个 POST 重新完成,或者生命周期是多长?
I understand from various sources that the HTTPS handshake is the heaviest part of using HTTPS. I'm using POSTs internally between my servers to communicate information and would like to use HTTPS for it. I wondered how long the actual HTTPS handshake lasts/"stays open"? Is it re-done for each POST I'm sending to a server, or what is the lifetime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SSL 握手仅在会话开始时完成,主要是生成用于加密所有后续流量的共享会话密钥。
您可以找到关于握手的非常好的描述 此处。
The SSL handshake is only done at the beginning of a session and is mainly about generating a shared session key that is used to encrypt all later traffic.
You can find a very good description of the handshake here.
我相信握手发生在连接上(即,作为 SSL 协商的一部分)。如果您使用 HTTP keep-alive 连接,那么只要连接处于活动状态,握手就只会发生一次。
I believe the handshake occurs on connection (ie, as part of the SSL negotiation). It you use HTTP keep-alive connections then the handshake only occurs once as long as the connection is active.
我不知道细节,但我确信握手应该只在会话开始时发生。不然就太贵了。
编辑:这是一个很好的该过程的描述。
I don't know the particulars, but I'm sure the handshake is supposed to occur only when the session is started. It would be too expensive otherwise.
Edit: Here's a nice description of the process.