From 7c16b33cec4c8a9fe308fbd665f245cb87c6174f Mon Sep 17 00:00:00 2001 From: Otto Mao Date: Tue, 31 Mar 2015 10:08:44 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20HTTPS=E7=9B=B8=E5=85=B3=E6=95=99?= =?UTF-8?q?=E7=A8=8B=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HTTPS相关教程.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/HTTPS相关教程.md b/HTTPS相关教程.md index afbe62c..8c07889 100644 --- a/HTTPS相关教程.md +++ b/HTTPS相关教程.md @@ -9,18 +9,23 @@ AnyProxy解析HTTPS的原理是自制根证书(rootCA),待终端信任这 * 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,信任它 +#### Step 2 - 生成RootCA,打开,信任它 * 生成RootCA * 命令行执行 ``sudo anyproxy --root`` -* 信任RootCA - * 方法一: 执行完成之后,会打开证书的安装路径,打开并信任 rootCA.crt 文件 +* 找到RootCA文件 + * 方法一: 执行完成之后,会打开证书的安装路径,即可看到 rootCA.crt 文件 * 方法二: 启动anyproxy,浏览器打开 [http://localhost:8002/fetchCrtFile](http://localhost:8002/fetchCrtFile) ,也能获取rootCA.crt文件 * 方法三:启动anyproxy,[http://localhost:8002/qr_root](http://localhost:8002/qr_root) 可以获取证书路径的二维码,移动端安装时会比较便捷 -* 信任流程 +* 打开上述rootCA.crt文件 +* 根据操作系统提示,信任rootCA + * Windows + ![https://t.alipayobjects.com/tfscom/T1D3hfXeFtXXXXXXXX.jpg_700x.jpg](https://t.alipayobjects.com/tfscom/T1D3hfXeFtXXXXXXXX.jpg_700x.jpg) + * Mac + ![https://t.alipayobjects.com/tfscom/T1NwFfXn0oXXXXXXXX.jpg_400x.jpg](https://t.alipayobjects.com/tfscom/T1NwFfXn0oXXXXXXXX.jpg_400x.jpg) * 其他 * 如果在访问时出现UNAUTHORIZED_CERTIFICATE一类的安全警告,请重新检查证书的安装情况