mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1625] Windows 10 Failed to generate SSL #1202
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1202
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 @ludificorpayne on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1625
What happened?
The program fails to generate the requisite SSL keys. Tests and disabling ssl confirmed it works sans key, but I'm not willing to risk not using some kind of security.
Version
v2.4.0
Git commit hash (if applicable)
No response
If applicable, where did you install Barrier from?
Chocolatey & Github release.
What OSes are you seeing the problem on? (Check all that apply)
Windows
What OS versions are you using?
Server: Windows 10 Home | Version 21H2 |
Client Windows 10 Pro | Version 21H2
Relevant log output
Any other information
Sorry man but building and exporting custom SSL keys for the functionality this program provides exceeds my needs and goes way over my head.
I've followed every test on the wiki, installed OpenSSl, reinstalled the program, confirmed the server connects and finally just disabled SSL and it worked, so the problem is just the lack of SSL keys.
I don't know what else I can think of - maybe uninstalling and finding where any configs are to regenerate it? I noticed that deleting the Temp files didn't reset anything, so a fresh install sans configs might work?
@ludificorpayne commented on GitHub (Apr 1, 2022):
I figured this out for anyone curious - the latest version doesn't generate its own SSL, however 2.3.4 does.
I downgraded on both machines, connected them both as a client and a server, then uninstalled 2.3.4 and reinstalled 2.4. It didn't remove the files in %APPDATA%/Local/Barrier and instead used them for the latest version.
The only issue I ran into was needing to delet the previous barrier.randomstring in the TEMP folder, (also in appdata/local) as it was throwing errors about duplicate screen names.
@skipmorris commented on GitHub (Apr 5, 2022):
A couple workarounds:
Copy the Barrier.pem from any other Windows machine into: C:\Users$USER\AppData\Local\Barrier\SSL\Barrier.pem
/or/
If you have Git or OpenSSL installed on your Windows box, then:
openssl req -x509 -nodes -days 365 -subj //CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
@ChangcongWang commented on GitHub (Apr 5, 2022):
Thank you, downgrading is the easiest way.
@indrajeetgour commented on GitHub (May 21, 2022):
Thanks @skipmorris for your comment, it workout for me.
What I followed was -
openssl req -x509 -nodes -days 365 -subj //CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pemBarrier.pemis generated, my another machine popup to ask for accept the certificate from barrier server.Hope this will help few of us, in future.
@Fauzdar1 commented on GitHub (Jul 16, 2022):
Thank you @indrajeetgour, I just used your solution to make it work in Windows and it worked properly. For others, they can find the detailed solution for both MAC and Windows here.