mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #2076] Barrier 2.4.0 does not create SSL certificate required for being a server, on any supported OS (Mac OS, Linux, Windows) #1499
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#1499
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 @LuboGD on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/debauchee/barrier/issues/2076
What happened?
Confirmed this bug affects Debian and likely all distributions derived from it. Barrier 2.4.0 installed from distribution repositories, i.e. sudo apt install barrier
Also Mac OS, from github binary releases.
Directory for SSL certificate on Linux (at least Debian and friends) is:
/home/lubod/.local/share/barrier/SSL
on Mac OS:
~/Library/Application Support/Barrier/SSL
Same command as posted for Mac OS creates SSL certificate:
openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
Fix can be implemented by adding a post-install script to the existing .deb package that does:
#!/bin/bash
cd ~/.local/share/barrier/SSL
openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
and on Mac OS, add to package from which .dmg is built:
cd ~/Library/Application Support/Barrier/SSL
openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
Already filed at: (including here for completeness)
https://bugs.launchpad.net/ubuntu/+source/barrier/+bug/1995190/comments/5
Version
v2.4.0
Git commit hash (if applicable)
No response
If applicable, where did you install Barrier from?
Distribution repositories and github binary release.
What OSes are you seeing the problem on? (Check all that apply)
Linux, macOS
What OS versions are you using?
Debian 12 and Mac OS 10.13
Relevant log output
No response
Any other information
No response
@GlennVanSchil commented on GitHub (Jul 15, 2024):
Just installed 2.4.0 and after setting up both server and client with auto-config, I get the following error when reach the edge of my screen
I see SSL errors on both server and client
@MrYoloPotato commented on GitHub (Jul 15, 2024):
I can confirm that it also affects Windows. The workaround works the same with minor modifications, but an openssl binary would need to be included.
@LuboGD commented on GitHub (Jul 15, 2024):
Autoconfig definitely does NOT work in 2.4.0 in Linux, it likely doesn't in Mac OS either. Uncheck auto config and manually enter the IP address of your server in your client. That works here. See screenshot below.

autoconfig generated the following errors in terminal when launching barrier:
*** WARNING *** The program 'barrier' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
Seems whoever wrote Avahi is saying Barrier needs to be rewritten to be compatible, and is not as of v. 2.4.0
@ressy commented on GitHub (Jul 24, 2024):
@LuboGD's manual cert creation did the trick for me with a mac server and mac client both running Barrier 2.4.0. Thanks!
@incenargo commented on GitHub (Sep 9, 2024):
Can confirm issue and fix on Fedora 40 KDE.
@sinmentis commented on GitHub (Sep 15, 2024):
Same issue on Windows 11 and same workaround.
@hansondr commented on GitHub (Jun 3, 2025):
To also create fingerprints on macOS:
referenced and adapted from the Windows instructions in the wiki (https://github.com/debauchee/barrier-wiki/blob/master/Command-Line.md#generating-certificate-and-fingerprint)
@nbolton commented on GitHub (Jun 3, 2025):
Please try Deskflow or Input Leap as Barrier is no longer in development.
https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap
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.
Not sure which to use? The 'Insights' tab of each project may help you decide.