Updated HTTPS相关教程 (markdown)

Otto Mao
2015-03-30 11:39:21 +08:00
parent eb74a81b33
commit bbf7956424

@@ -1,12 +1,12 @@
AnyProxy解析HTTPS的原理是自制根证书rootCA待终端信任这份证书之后再用它签发各个URL的二级证书,用这个二级证书重新对各个页面进行编解码。这种方案和HTTPS的“中间人攻击”MITM是一致的。
AnyProxy解析HTTPS的原理是自制根证书rootCA待终端信任这份证书之后再用它签发各个域名的二级证书,此时二级证书可以重新对各个页面进行解析。这种方案和HTTPS的“中间人攻击”MITM是一致的。
这份中文文档简略概述了用AnyProxy做HTTPS处理的相关流程。更完整的内容可以读这里的英文文档[https://github.com/alibaba/anyproxy/wiki/How-to-config-https-proxy](https://github.com/alibaba/anyproxy/wiki/How-to-config-https-proxy)
#### Step 1 - 安装openSSL
* OSX系统自带了openSSL可以略过这步
* openSSL的安装[http://wiki.openssl.org/index.php/Compilation_and_Installation](http://wiki.openssl.org/index.php/Compilation_and_Installation)
* Windows用户可以参考openSSL的安装教程[http://wiki.openssl.org/index.php/Compilation_and_Installation](http://wiki.openssl.org/index.php/Compilation_and_Installation) ,或者直接使用二进制版本:[https://www.openssl.org/related/binaries.html](https://www.openssl.org/related/binaries.html)
* 安装完成后可以通过``openssl version -a ``看到安装情况。
#### Step 2 - 生成RootCA信任它