[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

Open
opened 2026-05-05 07:53:22 -06:00 by gitea-mirror · 8 comments
Owner

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

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_
Author
Owner

@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

[2024-07-15T09:12:23] INFO: OpenSSL 3.0.0 7 sep 2021
[2024-07-15T09:12:23] ERROR: ssl certificate doesn't exist: /Users/glennvanschil/Library/Application Support/barrier/SSL/Barrier.pem

I see SSL errors on both server and client

<!-- gh-comment-id:2227838675 --> @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 ```log [2024-07-15T09:12:23] INFO: OpenSSL 3.0.0 7 sep 2021 [2024-07-15T09:12:23] ERROR: ssl certificate doesn't exist: /Users/glennvanschil/Library/Application Support/barrier/SSL/Barrier.pem ``` I see SSL errors on both server and client
Author
Owner

@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.

<!-- gh-comment-id:2229220486 --> @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.
Author
Owner

@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.
working-not-auto-config-barrier

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

<!-- gh-comment-id:2229481784 --> @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. ![working-not-auto-config-barrier](https://github.com/user-attachments/assets/3e5f59c6-18ed-4c77-8c27-d84f959c59b9) 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
Author
Owner

@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!

<!-- gh-comment-id:2248799468 --> @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!
Author
Owner

@incenargo commented on GitHub (Sep 9, 2024):

Can confirm issue and fix on Fedora 40 KDE.

<!-- gh-comment-id:2338655320 --> @incenargo commented on GitHub (Sep 9, 2024): Can confirm issue and fix on Fedora 40 KDE.
Author
Owner

@sinmentis commented on GitHub (Sep 15, 2024):

Same issue on Windows 11 and same workaround.

<!-- gh-comment-id:2351799361 --> @sinmentis commented on GitHub (Sep 15, 2024): Same issue on Windows 11 and same workaround.
Author
Owner

@hansondr commented on GitHub (Jun 3, 2025):

To also create fingerprints on macOS:

cd ~/Library/Application Support/Barrier/SSL
mkdir Fingerprints
openssl x509 -fingerprint -sha1 -in Barrier.pem -out Fingerprints/Local.txt

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)

<!-- gh-comment-id:2936224714 --> @hansondr commented on GitHub (Jun 3, 2025): To also create fingerprints on macOS: ``` cd ~/Library/Application Support/Barrier/SSL mkdir Fingerprints openssl x509 -fingerprint -sha1 -in Barrier.pem -out Fingerprints/Local.txt ``` 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)
Author
Owner

@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.

<!-- gh-comment-id:2936668601 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1499
No description provided.