mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 16:35:49 +03:00
[GH-ISSUE #400] 无法使用https的上级代理 #307
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#307
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 @liudonghua123 on GitHub (Sep 17, 2020).
Original GitHub issue: https://github.com/snail007/goproxy/issues/400
我测试在浏览器插件中设置https的代理(假设代理服务器域名是 a.b.c, 端口是 443)是正常的,我想在搭建一个本地的http代理,其上级设置为之前可以正常工作的https代理,我使用
proxy http -P a.b.c:443 -T tls -t tcp,提示需要proxy.crt,我把https://a.b.c的证书下载下来另存为proxy.crt,再次执行的时候又提示需要proxy.key,因为这个代理服务器不是我自己的,所有没办法获取到key,另外在浏览器里面以及命令行上通过http_proxy/https_proxy配置https代理的时候其实是不需要crt、keyExpected Behavior
支持简单的https代理,可以在本地执行例如
proxy http -P a.b.c:443 -T https -t tcpCurrent Behavior
需要提供无法提供的crt/key
Context (Environment)
proxy http -P a.b.c:443 -T tls -t tcpDetailed Description
Possible Implementation
@snail007 commented on GitHub (Sep 17, 2020):
使用不当,参考:
https://snail.gitee.io/proxy/page/faq/goproxy%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/
https://www.bilibili.com/video/BV1aK411L7nL/
@liudonghua123 commented on GitHub (Sep 17, 2020):
视频里面介绍的是自己搭建的https代理服务器,我需要实现的是已有一个https代理(是一个开放公共的,switchyomega里面可以直接配置使用),但是我想在localhost本地启动一个http代理,配置其上级是已有的https代理,之所以这么做是因为一个奇怪的问题,浏览器里面使用这个代理实可以的,在系统应用程序里面使用需要添加一些参数(例如curl的 --proxy-insecure)才行,有些客户端不支持这些设置,所以我才想添加一层本地的http代理,上一级使用已有一个https代理。
请问一下,那这种情况,命令应该如何写?谢谢!
@snail007 commented on GitHub (Sep 17, 2020):
看手册sps,上级-P格式支持https。
@liudonghua123 commented on GitHub (Sep 18, 2020):
@snail007 你好,我看文档里面sps这部分的介绍( https://snail.gitee.io/proxy/manual/zh/#/?id=_62-https%e8%bd%achttpssocks5ss ),因为已知的是一个https代理,没有证书、秘钥,也不需要用户名密码,想本地部署一个http代理,上级连接这个https代理,我试了
proxy sps -S http -T tcp -P usa.cn-cloudflare.com:443 -t tcp,但这时候,连接不了,大致错误输出是我也试了
proxy http -P usa.cn-cloudflare.com:443 -T tcp -t tcp@liudonghua123 commented on GitHub (Sep 23, 2020):
@snail007 你好,我还是测试了几个不同的参数,还是连接不了,浏览器里面或者curl直接使用export http_proxy/https_proxy=https://usa.cn-cloudflare.com:443 是可以代理的,想使用goproxy封装一个http代理就始终不行,不知道为什么,是在看不出是哪出问题,还请不吝赐教