mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2250] plugin_https2http: error: failed to parse private key #1790
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#1790
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 @Arimov on GitHub (Feb 20, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2250
Originally assigned to: @yuyulei on GitHub.
Version: 0.35.1
Server:
OS: Debian GNU/Linux 9 (stretch)
CPU architecture: Amd64
Client:
OS: Raspbian GNU/Linux 10 (buster)
CPU: Arm
I'm trying to run in mode https2http
My server ini:
my client ini:
On the client I created keys:
$ openssl genrsa -des3 -out server.key 2048$ openssl req -new -key server.key -out server.csr$ openssl x509 -signkey server.key -in server.csr -req -days 9965 -out server.crtand put it in home catalog
I start server - ok
$ sudo /usr/bin/frps -c /etc/frp/frps.iniI start client:
$ sudo /usr/bin/frpc -c /etc/frp/frpc.iniand get error:
[W] [control.go:178] [7193986e54985d09] [plugin_https2http] start error: gen TLS config error: tls: failed to parse private key@yuyulei commented on GitHub (Feb 22, 2021):
@Arimov maybe similar to https://github.com/stellar/go/issues/64 or https://github.com/Coccodrillo/apns/issues/34, and I recommend the example: https://github.com/fatedier/frp/pull/2251/files
@Arimov commented on GitHub (Feb 27, 2021):
I redid the certificate according to this instruction and now I do not receive an error on the client
And it works for me (what if it comes in handy)
@haade-administrator commented on GitHub (Mar 2, 2021):
hello arimov i created a hassio-addons frp module,https://github.com/haade-administrator/haade-addons as i see you are using homeassistant could you give me the whole frps server and frpc client manipulation so that i see how to integrate ssl into the module with openssl, thanks for advanced
@Arimov commented on GitHub (Mar 2, 2021):
hi @haade-administrator, I took a free certificate from CloudFlare. The server code worked for me, but the websockets still didn't work :-(
In the end, I decided to proxy through another web server (nginx and Let's encrypt)
@github-actions[bot] commented on GitHub (Apr 17, 2021):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.