[GH-ISSUE #314] https代理开启,无法直接使用吗?怎么试了都不行 #230

Closed
opened 2026-02-27 23:16:05 +03:00 by kerem · 1 comment
Owner

Originally created by @axyzxyz on GitHub (Aug 28, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/314

命令如下:

proxy keygen -s -C proxy -c goproxy
# 分别尝试了以下几种开启https代理的方式,报错都一样,不能识别证书
proxy http -t tls --local-tls-single  -p ":38080"
proxy http -t tls   -p ":38080"
proxy http -t tls --local-tls-single  -p ":38080" -C goproxy.crt -K goproxy.key
proxy http -t tls --local-tls-single  -p ":38080" -C goproxy.crt -K goproxy.key

# 报错信息:
[root@VM_0_12_centos proxy]# proxy http -t tls --local-tls-single  -p ":38080" -C goproxy.crt -K goproxy.key
proxy free version 8.1  by snail , email : arraykeys@gmail.com
2019/08/28 18:05:00 tls http(s) proxy on [::]:38080
2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65085, remote error: tls: unknown certificate
2019/08/28 18:05:13 attacking  access 180.169.59.253:65085 <--> 172.17.0.12:38080
2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65087, remote error: tls: unknown certificate
2019/08/28 18:05:13 attacking  access 180.169.59.253:65087 <--> 172.17.0.12:38080
2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65084, remote error: tls: unknown certificate

Originally created by @axyzxyz on GitHub (Aug 28, 2019). Original GitHub issue: https://github.com/snail007/goproxy/issues/314 命令如下: ``` proxy keygen -s -C proxy -c goproxy # 分别尝试了以下几种开启https代理的方式,报错都一样,不能识别证书 proxy http -t tls --local-tls-single -p ":38080" proxy http -t tls -p ":38080" proxy http -t tls --local-tls-single -p ":38080" -C goproxy.crt -K goproxy.key proxy http -t tls --local-tls-single -p ":38080" -C goproxy.crt -K goproxy.key # 报错信息: [root@VM_0_12_centos proxy]# proxy http -t tls --local-tls-single -p ":38080" -C goproxy.crt -K goproxy.key proxy free version 8.1 by snail , email : arraykeys@gmail.com 2019/08/28 18:05:00 tls http(s) proxy on [::]:38080 2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65085, remote error: tls: unknown certificate 2019/08/28 18:05:13 attacking access 180.169.59.253:65085 <--> 172.17.0.12:38080 2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65087, remote error: tls: unknown certificate 2019/08/28 18:05:13 attacking access 180.169.59.253:65087 <--> 172.17.0.12:38080 2019/08/28 18:05:13 tls handshake fail from 180.169.59.253:65084, remote error: tls: unknown certificate ```
kerem closed this issue 2026-02-27 23:16:05 +03:00
Author
Owner

@snail007 commented on GitHub (Aug 28, 2019):

你使用方法二生成证书,三端需要--ca指定 proxy.crt

<!-- gh-comment-id:525691319 --> @snail007 commented on GitHub (Aug 28, 2019): 你使用方法二生成证书,三端需要--ca指定 proxy.crt
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#230
No description provided.