Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b3d90e

Browse filesBrowse files
committed
Java
1 parent e17c085 commit 8b3d90e
Copy full SHA for 8b3d90e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

41 files changed

+357
-48
lines changed
Open diff view settings
Collapse file

‎docs/HTTP/4_HTTPs.md‎

Copy file name to clipboardExpand all lines: docs/HTTP/4_HTTPs.md
+9-9Lines changed: 9 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# HTTPs
1+
# HTTPS
22

33
HTTP 有以下安全性问题:
44

55
- 使用明文进行通信,内容可能会被窃听;
66
- 不验证通信方的身份,通信方的身份有可能遭遇伪装;
77
- 无法证明报文的完整性,报文有可能遭篡改。
88

9-
HTTPs 并不是新协议,而是让 HTTP 先和 SSL(Secure Sockets Layer)通信,再由 SSL 和 TCP 通信,也就是说 HTTPs 使用了隧道进行通信。
9+
HTTPS 并不是新协议,而是让 HTTP 先和 SSL(Secure Sockets Layer)通信,再由 SSL 和 TCP 通信,也就是说 HTTPS 使用了隧道进行通信。
1010

11-
通过使用 SSL,HTTPs 具有了加密(防窃听)、认证(防伪装)和完整性保护(防篡改)。
11+
通过使用 SSL,HTTPS 具有了加密(防窃听)、认证(防伪装)和完整性保护(防篡改)。
1212

1313
<div align="center"> <img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/network/ssl-offloading.jpg" width="700"/> </div><br>
1414

@@ -40,7 +40,7 @@ HTTPs 并不是新协议,而是让 HTTP 先和 SSL(Secure Sockets Layer)
4040

4141
HTTPs 采用混合的加密机制,使用非对称密钥加密用于传输对称密钥来保证传输过程的安全性,之后使用对称密钥加密进行通信来保证通信过程的效率。(下图中的 Session Key 就是对称密钥)
4242

43-
<div align="center"> <img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/network/How-HTTPS-Works.png" width="600"/> </div><br>
43+
<div align="center"> <img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/network/How-HTTPS-Works.png" width="400"/> </div><br>
4444

4545
## 认证
4646

@@ -66,18 +66,18 @@ HTTPs 的报文摘要功能之所以安全,是因为它结合了加密和认
6666

6767

6868

69-
## HTTP 与 HTTPs 的区别
69+
## HTTP 与 HTTPS 的区别
7070

71-
- HTTPs 需要向 CA 申请证书,需要支持证书授权的费用;
71+
- HTTPS 需要向 CA 申请证书,需要支持证书授权的费用;
7272

7373
HTTP 不需要收费
7474

75-
- HTTPs 是密文传输的,存在加密、加密过程,速度会更慢;
75+
- HTTPS 是密文传输的,存在加密、加密过程,速度会更慢;
7676

7777
HTTP 是密文传输
7878

79-
- HTTPs 默认使用 443 端口;
79+
- HTTPS 默认使用 443 端口;
8080

8181
HTTP 默认使用 80 端口
8282

83-
- HTTPs 先与 SSL 通信,再由 SSL 与 TCP 通信,在 HTTP 基础上增加了加密、认证、完整性保护的功能,比 HTTP 更安全。
83+
- HTTPS 先与 SSL 通信,再由 SSL 与 TCP 通信,在 HTTP 基础上增加了加密、认证、完整性保护的功能,比 HTTP 更安全。
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.