HTTP 和 HTTPS 的数据差异 sent/received

Difference in data sent/received with HTTP and HTTPS

我很想知道通过 HTTP 连接和通过 HTTPS 连接发送的数据之间的区别。我的意思是,内容是什么,在这两种情况下看起来如何。我可以找到 HTTP,但是如果通过 HTTPS 共享相同的信息,相应的内容是什么? HTTP 包含 Request LineHeaderMessage body。我希望差异将是 Message body。谁能解释一下?证书内容嵌入这个Message body还是怎么样?

I am curious to know the difference between the data sent over a HTTP connection and over HTTPS connection.

没有区别。

I mean, what is the content, how it looks like in both cases.

两种情况都是一样的

I am able for find for HTTP, but what is the corresponding content if same information is shared over HTTPS?

是一样的

HTTP contains Request Line, Header and Message body.

HTTPS 也是如此。

I hope difference will be wrt Message body.

不同之处在于整个有效负载都是加密的。

Can anyone explain?

我已经努力做到了。

Certificate content is embedded in this Message body

没有

or how is it?

它嵌入在 TLS 握手中,它先于连接上的任何数据交换,包括所有 HTTP 内容。

在 HTTPS(SSL 上的 HTTP)中,HTTP 请求是通过 SSL 隧道执行的,因此 HTTP headers 和有效负载都是加密的。

证书是在建立连接时由服务器发送的,作为 TLS 握手的一部分。此类证书必须受到客户端本身或客户端信任的一方的信任。


可能这个article会让你更好地理解握手