mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #2] 使用后浏览器报错,客户端日志输出乱码,服务端日志输出证书有问题 #3
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Sep 24, 2017).
Original GitHub issue: https://github.com/snail007/goproxy/issues/2
一切按教程操作后,浏览器扩展设置HTTPS代理 127.0.0.1 33080
然后Chrome浏览器报错 [代理服务器有误,请检查...] ,如果改成HTTP代理则变成 [xxx.xx 未发送任何数据]
客户端HTTPS代理时提示:
客户端HTTP代理时提示:
服务端无论什么都是提示:
证书是通过
./proxy keygen生成的。客户端设备上也尝试安装这个证书,不过没什么用。
服务器系统 Debian7 x64、本地设备系统 Windows7 32位
@snail007 commented on GitHub (Sep 25, 2017):
你好,你的问题貌似是服务器端和本地的证书不一致导致的,read err:remote error: tls: bad certificate这个意思就是证书不一致导致的,你可以把你的服务端启动命令参数和本地的启动命令参数贴出来,才能进一步找出问题.
下面给你一个简短的步骤:
1.在vps上执行./proxy keygen,得到proxy.crt和proxy.key
2.下载proxy.crt和proxy.key到本地
3.在vps上执行./proxy -x -p 38080 -f proxy.crt -k proxy.key
4.在本地执行./proxy -X -P "x.x.x.x:38080" -p 33080 -f proxy.crt -k proxy.key
x.x.x.x为vps的IP
5.浏览器设置http代理127.0.0.1:33080
@ghost commented on GitHub (Sep 25, 2017):
@snail007
-c proxy.crt这个代码错误。-c 是指定配置文件的,应该是 -f 。
-f proxy.crt经过测试后正常了。
我估计是配置文件的问题吧,因为我昨天测试的时候是看你的图文教程只修改了配置文件内的选项,然后直接运行 proxy 默认读取配置文件选项。
刚才用你给的命令方式运行就正常。
服务端配置文件:
客户端配置文件:
@snail007 commented on GitHub (Sep 28, 2017):
问题解决就好,目测配置文件没什么问题,只能手动执行,看看输出什么日志才能进一步排查.