[GH-ISSUE #3385] [Feature Request] 请问能使用自己用IP地址生成的SSL证书吗? #2708

Closed
opened 2026-05-05 13:44:43 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @itsyuyi on GitHub (Apr 2, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3385

Describe the feature request

自己用IP地址制作了SSL证书,想通过vhost_https_port实现内网穿透。

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @itsyuyi on GitHub (Apr 2, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3385 ### Describe the feature request 自己用IP地址制作了SSL证书,想通过vhost_https_port实现内网穿透。 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:44:43 -06:00
Author
Owner

@Becods commented on GitHub (Apr 3, 2023):

vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以

实践是检验真理的唯一标准

<!-- gh-comment-id:1494612706 --> @Becods commented on GitHub (Apr 3, 2023): vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以 **实践是检验真理的唯一标准**
Author
Owner

@xqzr commented on GitHub (Apr 9, 2023):

vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以

实践是检验真理的唯一标准

vhost_http 依靠 host。
vhost_https 依靠 SNI。但 IP 访问不带 SNI。

<!-- gh-comment-id:1501163401 --> @xqzr commented on GitHub (Apr 9, 2023): > vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以 > > **实践是检验真理的唯一标准** `vhost_http` 依靠 host。 `vhost_https` 依靠 SNI。但 IP 访问不带 SNI。
Author
Owner

@xqzr commented on GitHub (Apr 9, 2023):

type = tcp

<!-- gh-comment-id:1501163442 --> @xqzr commented on GitHub (Apr 9, 2023): `type = tcp`
Author
Owner

@itsyuyi commented on GitHub (Apr 16, 2023):

vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以

实践是检验真理的唯一标准

如何添加host标头?

<!-- gh-comment-id:1510015120 --> @itsyuyi commented on GitHub (Apr 16, 2023): > vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以 > > **实践是检验真理的唯一标准** 如何添加host标头?
Author
Owner

@itsyuyi commented on GitHub (Apr 16, 2023):

vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以
实践是检验真理的唯一标准

vhost_http 依靠 host。 vhost_https 依靠 SNI。但 IP 访问不带 SNI。

你的意思是不能用IP地址生成的SSL证书?

<!-- gh-comment-id:1510015326 --> @itsyuyi commented on GitHub (Apr 16, 2023): > > vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以 > > **实践是检验真理的唯一标准** > > `vhost_http` 依靠 host。 `vhost_https` 依靠 SNI。但 IP 访问不带 SNI。 你的意思是不能用IP地址生成的SSL证书?
Author
Owner

@itsyuyi commented on GitHub (Apr 16, 2023):

type = tcp

frpc的配置文件里是按照这个配置的

<!-- gh-comment-id:1510016842 --> @itsyuyi commented on GitHub (Apr 16, 2023): > `type = tcp` frpc的配置文件里是按照这个配置的
Author
Owner

@itsyuyi commented on GitHub (Apr 16, 2023):

亲测有效

<!-- gh-comment-id:1510026412 --> @itsyuyi commented on GitHub (Apr 16, 2023): > 亲测有效
Author
Owner

@xqzr commented on GitHub (Apr 17, 2023):

vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以
实践是检验真理的唯一标准

vhost_http 依靠 host。 vhost_https 依靠 SNI。但 IP 访问不带 SNI。

你的意思是不能用IP地址生成的SSL证书?

可以,但需要 type = tcp

<!-- gh-comment-id:1511306910 --> @xqzr commented on GitHub (Apr 17, 2023): > > > vhost 依靠 host 标头,而 ip访问 也会带 host 标头,你猜可不可以 > > > **实践是检验真理的唯一标准** > > > > > > `vhost_http` 依靠 host。 `vhost_https` 依靠 SNI。但 IP 访问不带 SNI。 > > 你的意思是不能用IP地址生成的SSL证书? 可以,但需要 `type = tcp`
Author
Owner

@github-actions[bot] commented on GitHub (May 18, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1552250803 --> @github-actions[bot] commented on GitHub (May 18, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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: github-starred/frp#2708
No description provided.