-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh Barrier Install Shows is:openERROR: ssl certificate doesn't exist: /home/thomas/.var/app/com.github.debauchee.barrier/data/barrier/SSL/Barrier.pem #231
Fresh Barrier Install Shows is:openERROR: ssl certificate doesn't exist: /home/thomas/.var/app/com.github.debauchee.barrier/data/barrier/SSL/Barrier.pem #231
Comments
I can confirm that the file does not exist:
|
I thought this could be similar to #142 but allowing barrier.exe and barriers.exe through the firewall did not change the message in the logs. #'171 also looked related but I cannot work out where the Barrier.pem shown there comes from. Following the supplied link did not really change anything. I can at least confirm this is related to having the SSL config enabled. With that disabled I am able to get the client and server to work together. |
That's interesting, I'm a daily user of the flatpak and barrier managed to generate an SSL certificate for me just fine.
|
As a workaround, I used the synergy instructions from this page: https://wiki.archlinux.org/index.php/synergy#Set_up_encryption_on_server TL;DR:
Then enable encryption from the settings on both the client and server, restart both, and accept the new server certificate from your client ... should be good to go from there. Edit: |
I'll leave this issue open just in case someone else also has this issue. Also you might want to bump that key-length from |
fair point. I usually use the 4K keys ... I just got lazy this time around and copy/pasted. Comment updated with @AdrianKoshka 's suggestions. Edit: punctuation. |
When I run the
It looks like you have lost a couple of spaces from the command. The following works:
The
I believe that the workaround advice should be updated to:
At least in my case. |
Now does the absence of sha2 support explain the cause of my issue? If whatever is expected to automatically generate the keys is trying to use sha2 and silently failing. I have version 1.1.0g of OpenSSL.
What version is expected to have the sha2 support? It seems that I can use either |
I am pleased to report that with the workaround in place (using sha512 in this case) I have been able to connect the Windows client to the flatpak version of barrier. Thank you for your help in getting me up and running. Please let me know if there is anything more I can do to help find the cause of the issue and possible solution. |
Same setup and same behaviour as in the bug description here. |
I had this same issue. Both client and server were version 2.2.0-snapshot-53ebc47a. Using the commands in the post by @TafThorne did the trick. |
I had the same issue, it worked for me too! |
This just crept up on me out of the blue after this past update. Had to follow the instructions above as well. |
Hey, I tried @TafThorne 's commands and I'm getting this:
anyone knows what's the issue? |
Not trying to sound rude but why this hasn't been fixed in the official Flatpak build as it seems to affect all new installs, including me today and is a real barrier to entry for new users? |
So, as was probably obvious, the |
Truly sorry this was an issue for so long, it really shouldn't have been. After work it can be hard to find the energy to work on OSS. |
Indeed, thank you for fixing the issue. My point was that the Flatpak package is likely one of the main channels to install Barrier and since it was effectively broken for all new users it was a bit frustrating to find the issue had been open for so long. |
|
Hey people, I just ran into this issue on a fresh install using
Worked for me! |
This is how I've got it running on Windows:
|
I had the exact same issue on macOS Monterey (12.0.1) today. Solved it by running the openssl command described in @4F2E4A2E post.
|
This should be opened again, as it appears to be an ongoing issue with Barrier. Reopening. |
Thanks, this is working for me. |
It worked for me, controlling Acer One KAV60 with Debian i386 11 from Samsung laptop with Windows 10 TLS |
Same issue with v2.4.0 (and working solution) on both linux (opensuse) and windows. |
Same issue with The client's environment:
The initial issues was resolved with commands from @jhgorse's comment by running them on the server side, yet the value of
In case, you face the below error on the server side, check if the client has Enable SSL option turned on:
This is what the client says during this attempt to connect:
The server port was verified to be open by the following command on the client side:
|
So since 4 years, every new user has to walk this walk and the original purpose of forking synergy was to make it easier for users to have kvm? In the logs, I see:
I installed the snap, because barrier didn't work using the apt packages. On one installation (both Ubuntu 22.04), I got an error or warning message that didn't fail the installation. So I first ignored it and then deinstalled the package, because these two Ubuntus are new and virtually identical and I really don't trust a package that doesn't work and throws random error messages that are ignored. Seeing this error message, am I supposed as a good user to manually create a certificate and copy it into a snap directory? I find the whole concept of isolated environments with side effects and dependency free packages with dependencies rather suspect. Having an app not use The apt package does not work, the snap does not work, the homebrew installation on mac does not work. I assume that if 3 out of 3 installation methods don´t work, the others I didn't try won't work either. I wonder why one would spend a lot of time writing software, packaging it up, create new versions and then not fix a bug that keeps users from ever seeing the thing in action, unless they are really determined. The year is still young, but still, this is my top contender in 2023 for software I tried and will never touch again. |
snaps just don’t make a lot of sense overall.
Fixing bugs isn’t easy and takes time. Also it seems active maintainers of this project have left to create and maintain a different fork, input-leap, so it’s unlikely the fix will ever land in barrier. |
Thanks for the pointer! I will try that. Funny that one of the comments in alternative-to was ¨it's maintained¨. The connotation of input leap is certainly better than that of barrier anyway... ;-) |
For Windows the
Otherwise the underlying libraries (coming from mingw) are trying to be smart and convert arguments that look like paths (as the |
Would it be possible to cut a new release with this fix? 2.4.0 is from 2021, and there are no releases yet for input-leap. (Both Mac and Windows, no Flatpaks or Snaps or other file system shenanigans involved) |
same issue on windows, the certificates were never generated. |
It seems like there are at least a few commits on master past 2.4.0: https://github.com/debauchee/barrier/commits/master These might be fixed there. Try the July 6 2022 build available on Azure pipelines: Does it reproduce or fix the problem? |
Also worked for me, thanks Server: Windows 10 (19045.3086) |
This doesn't seem like the best place to put a tutorial, but since everyone else is offering up what worked for them, I figured I might as well document what worked for me somewhere, especially since I assume many people googling their problems and errors will eventually end up here, as I did. Objective: Trying to connect macOS (Big Sur) client to Windows 10 Pro (22H2) server; both are brand new installs. Symptoms:
Step 1: Fix macOS client. I followed instructions here: https://stackoverflow.com/questions/67343804/error-ssl-certificate-doesnt-exist-home-rsvay-snap-barrier-kvm-2-local-shar However, I had to slightly edit the last line, which was formatted for Linux, as opposed to macOS which is BSD-based. Also, the directory shown below that you change to should match the specific path referenced above and showing in Barrier's log for the location of the missing SSL certificate.
After this, you must completely close and restart the Barrier app so that it will find and load the SSL Fingerprint correctly. Following this, Barrier still showed as "starting" only, and the log still showed several errors:
Perhaps I should have fixed the server first, to avoid these errors. Either way, the client is ready now, so on to the server. Step 2: Fix the Windows server. Following @4F2E4A2E instructions, I used chocolatey to install git ( Then I issued the following commands:
Alternatively, this should also work:
Alternatvely, you could just create the Barrier.pem file anywhere using the With the required SSL certificate created, you must then completely close Barrier (double-check the system tray) and restart it again. Now the required SSL Fingerprint should show up in the application! Step 3: Connect the client and server. If the app is now "running" on both devices, you should see a window pop up on the macOS client asking you to accept the SSL fingerprint from the server. (If you don't see this then maybe check your network and firewall?) But after accepting the server's SSL certificate on the client, I still wasn't connected and was still getting errors in the macOS client log, namely:
To fix this final obstacle, on the Windows server side you need to click on the In the new window, change the This is why people pay for software instead of using open-source stuff. It seems to be working great now, though. Thanks for your help and your time! |
The last pipline build resolved the issue for me on macOS 13.5.1 using the macOS 11 released dmg: Auto connection with Windows Server "just worked." No fussing. macOS was fresh without having used barrier before. If the direct download link above does not work, use this link, click the ... on the right, download artifacts. Cheers, |
This fixed it for me. Server running on Ubuntu, ran the commands above. Client running on Mac OS, accepted the fingerprint. It's working perfectly now! |
Updated Summary of Resolutions for space in path issue: #231 (comment) |
Thank you so much ! This helped. I had to sign up Github to thank you. Thank you! I hope this is the right place to comment. lol :) |
Both server and client is running but on client computer mouse pointer is not showing even though log says it is connected and clip board is updated as well |
I have found this seems to be a bug with the default settings of the barrier app. On a fresh install of barrier where I would have expected SSL to be disabled, I ran into the same issue. I fixed this by properly disabling SSL.
|
I am afraid you have cutted the Gordian Knot. If you run without SSL it will be quite easy to overtake your PCs with Barrier. Of course it requires access to your network. If you consider this secure enough - fine. |
Setup:Ubuntu 22.04 Server and a Windows 10 Client Solution:For Ubuntu (Server) Hint:If Windows is the server, search for and use the equivalent OpenSSL commands on Windows to generate the certificate. Note:Keep in mind that Barrier is no longer actively maintained and doesn't receive updates or security fixes. The primary developers have moved to the InputLeap project. You may consider switching to InputLeap for continued development and support: InputLeap GitHub. This solution resolved the issue for me. |
Please try Deskflow or Input Leap as Barrier is no longer in development. https://github.com/deskflow/deskflow Both are compatible with Barrier client/server so you can try on one of your computers. If this is still an issue in those projects, we would appreciate a cross-post of this issue. |
Question - Is Input Leap stable? I've been periodically checking on that project but it doesn't appear to be nearly as finished or as polished as Barrier, and there are few to no user-friendly installation options at this time. I wouldn't personally consider it a replacement until it is at parity with Barrier in terms of ways/places it can be installed without telling one to compile it. |
What is your opinion on Deskflow? |
I uninstalled Barrier from the client computer to switch to Input Leap. After installing Input Leap, it seems to work fine while the server is still running Barrier. So, Barrier as a server appears to be compatible with Input Leap as a client and vice versa |
Operating Systems
Server: Ubuntu 18.04
Client: Microsfot Windows 10 Version 1803 (OS Build 17134.523)
Barrier Version
Server: 2.2.0-snapshot-53ebc47a
Client: 2.1.0-RELEASE-0b2dfd80
Steps to reproduce bug
flatpak run com.github.debauchee.barrier
Other info
The text was updated successfully, but these errors were encountered: