mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2829] Cannot enable https, and get an error " first record does not look like a TLS handshake" #2265
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2265
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 @Line233 on GitHub (Mar 7, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2829
Bug Description
I want to enable https for my local http service, but it failed.
Detail:
I start a http service at 127.0.0.1:8000. Then I start frpc to transport 127.0.0.1:8000 to my public server using HTTPS and HTTP.
I can visit my service through my public server using HTTP, but cannot with HTTPS
I get an error from frps: "get hostname from http/https request error: tls: first record does not look like a TLS handshake"
frpc Version
0.39.1
frps Version
0.39.1
System Architecture
linux/amd64
Configurations
frpc.ini:
fops.ini:
Logs
frpc
frps
Steps to reproduce
Affected area
@fatedier commented on GitHub (Mar 7, 2022):
Make sure you use https to visit port 10056.
@Line233 commented on GitHub (Mar 7, 2022):
@fatedier
If I directly visit {sever_ip}:10056, I will get
[vhost.go:147] get hostname from http/https request error: tls: first record does not look like a TLS handshakefrom frps.If I visit https://{server_ip}:10056, I will get
[vhost.go:158] http request for host [] path [] not foundfrom frps.@fatedier commented on GitHub (Mar 7, 2022):
server_ip -> your domain
@Line233 commented on GitHub (Mar 7, 2022):
thanks, it works if I visit my domain.
Besides, is it possible to use https only with ip address?
thx!
@blizard863 commented on GitHub (Mar 10, 2022):
Yes, but not recommended. https://stackoverflow.com/questions/2043617/is-it-possible-to-have-ssl-certificate-for-ip-address-not-domain-name#:~:text=The%20short%20answer%20is%20yes,is%20a%20public%20IP%20address.
@github-actions[bot] commented on GitHub (Apr 10, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.