diff --git a/doc/Chapter4.md b/doc/Chapter4.md index 45784c5..ef09f58 100644 --- a/doc/Chapter4.md +++ b/doc/Chapter4.md @@ -1,7 +1,7 @@ # 第四节:一个简易的HTTPS代理 结合前3节的内容,下面实现一个简易的HTTPS代理。 -在第二节了解了一个HTTPS请求的代理过程,在建立链接的第一步是一个HTTP CONNECT请求,在这一步可以获得客户端请求目标网站的**域名**(这么说不是很准确,具体可看看[SNI](https://zh.wikipedia.org/zh-hans/%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%90%8D%E7%A7%B0%E6%8C%87%E7%A4%BA))。用预先安装好的CA证书和密钥生成对应**域名**的子证书,这个过程其实就是一个HTTPS代理的核心步骤。 +在第二节了解了一个HTTPS请求的代理过程,在建立链接的第一步是一个HTTP CONNECT请求,在这一步可以获得客户端请求目标网站的**域名**(这么说不是很准确,具体可看看[SNI](https://zh.wikipedia.org/zh-hans/%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%90%8D%E7%A7%B0%E6%8C%87%E7%A4%BA))。用预先安装好的CA证书和密钥,生成对应**域名**的子证书。这个过程其实就是一个HTTPS代理的核心步骤。 ## 获取https所请求的域名 ```javascript @@ -196,3 +196,6 @@ npm script运行方式 ``` npm run simpleHttpsProxy ``` + +这样一个简易的HTTPS代理就完成了。 + diff --git a/doc/img/https/MacInstallCA.png b/doc/img/https/MacInstallCA.png deleted file mode 100644 index e8c19e7..0000000 Binary files a/doc/img/https/MacInstallCA.png and /dev/null differ diff --git a/doc/img/https/not_trusted.png b/doc/img/https/not_trusted.png deleted file mode 100644 index cda41f9..0000000 Binary files a/doc/img/https/not_trusted.png and /dev/null differ diff --git a/doc/img/https/not_trusted_cert.png b/doc/img/https/not_trusted_cert.png deleted file mode 100644 index 0c694e6..0000000 Binary files a/doc/img/https/not_trusted_cert.png and /dev/null differ diff --git a/doc/img/https/trusted.png b/doc/img/https/trusted.png deleted file mode 100644 index 77f32b1..0000000 Binary files a/doc/img/https/trusted.png and /dev/null differ diff --git a/doc/img/https/trusted_cert.png b/doc/img/https/trusted_cert.png deleted file mode 100644 index df82a9e..0000000 Binary files a/doc/img/https/trusted_cert.png and /dev/null differ diff --git a/doc/img/tunnel/https_tunnel_process.png b/doc/img/tunnel/https_tunnel_process.png deleted file mode 100644 index 640d703..0000000 Binary files a/doc/img/tunnel/https_tunnel_process.png and /dev/null differ diff --git a/doc/img/tunnel/https_tunnel_proxy_setting.png b/doc/img/tunnel/https_tunnel_proxy_setting.png deleted file mode 100644 index 6555e95..0000000 Binary files a/doc/img/tunnel/https_tunnel_proxy_setting.png and /dev/null differ