[GH-ISSUE #1777] Certificate Missing on OS X #1308

Closed
opened 2026-05-05 07:42:54 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @fny on GitHub (Sep 12, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1777

What happened?

Setup: macOS server, Ubuntu client.

The two machines see each other, but the minute I connect the client, I get an error due to a missing certificate on the server:

[2022-09-12T17:07:08] INFO: starting server
[2022-09-12T17:07:08] INFO: config file: /private/var/folders/m7/kkbm_y0x2zz7_k56gqw8942m0000gp/T/Barrier.tegbvl
[2022-09-12T17:07:08] INFO: log level: INFO
[2022-09-12T17:07:09] INFO: drag and drop enabled
started server (IPv4/IPv6), waiting for clients
2022-09-12 17:07:09.049356-0400 barriers[5520:207510] starting cocoa loop
[2022-09-12T17:07:14] INFO: OpenSSL 3.0.0 7 sep 2021
[2022-09-12T17:07:14] ERROR: ssl certificate doesn't exist: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem

I tried to generate my own PEM file, but alas, that did not work either.

[2022-09-12T17:05:11] INFO: starting server
[2022-09-12T17:05:11] INFO: config file: /private/var/folders/m7/kkbm_y0x2zz7_k56gqw8942m0000gp/T/Barrier.xtYpGQ
[2022-09-12T17:05:11] INFO: log level: INFO
[2022-09-12T17:05:11] INFO: drag and drop enabled
started server (IPv4/IPv6), waiting for clients
2022-09-12 17:05:11.870634-0400 barriers[5427:205973] starting cocoa loop
[2022-09-12T17:05:22] INFO: OpenSSL 3.0.0 7 sep 2021
[2022-09-12T17:05:22] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem
[2022-09-12T17:05:22] ERROR: error:0A080009:SSL routines::PEM lib
[2022-09-12T17:05:38] INFO: OpenSSL 3.0.0 7 sep 2021
[2022-09-12T17:05:38] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem
[2022-09-12T17:05:38] ERROR: error:0A080009:SSL routines::PEM lib
[2022-09-12T17:05:54] INFO: OpenSSL 3.0.0 7 sep 2021
[2022-09-12T17:05:54] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem
[2022-09-12T17:05:54] ERROR: error:0A080009:SSL routines::PEM lib

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Snaps and github

What OSes are you seeing the problem on? (Check all that apply)

Linux, macOS

What OS versions are you using?

Ubuntu v22.04
OS X v12.5.1

Any other information

For what it's worth, I am able to run everything without SSL, but I'd prefer to have it. Not sure where I went wrong when generating my own certificate.

Originally created by @fny on GitHub (Sep 12, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1777 ### What happened? Setup: macOS server, Ubuntu client. The two machines see each other, but the minute I connect the client, I get an error due to a missing certificate on the server: ``` [2022-09-12T17:07:08] INFO: starting server [2022-09-12T17:07:08] INFO: config file: /private/var/folders/m7/kkbm_y0x2zz7_k56gqw8942m0000gp/T/Barrier.tegbvl [2022-09-12T17:07:08] INFO: log level: INFO [2022-09-12T17:07:09] INFO: drag and drop enabled started server (IPv4/IPv6), waiting for clients 2022-09-12 17:07:09.049356-0400 barriers[5520:207510] starting cocoa loop [2022-09-12T17:07:14] INFO: OpenSSL 3.0.0 7 sep 2021 [2022-09-12T17:07:14] ERROR: ssl certificate doesn't exist: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem ``` I tried to generate my own PEM file, but alas, that did not work either. ``` [2022-09-12T17:05:11] INFO: starting server [2022-09-12T17:05:11] INFO: config file: /private/var/folders/m7/kkbm_y0x2zz7_k56gqw8942m0000gp/T/Barrier.xtYpGQ [2022-09-12T17:05:11] INFO: log level: INFO [2022-09-12T17:05:11] INFO: drag and drop enabled started server (IPv4/IPv6), waiting for clients 2022-09-12 17:05:11.870634-0400 barriers[5427:205973] starting cocoa loop [2022-09-12T17:05:22] INFO: OpenSSL 3.0.0 7 sep 2021 [2022-09-12T17:05:22] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem [2022-09-12T17:05:22] ERROR: error:0A080009:SSL routines::PEM lib [2022-09-12T17:05:38] INFO: OpenSSL 3.0.0 7 sep 2021 [2022-09-12T17:05:38] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem [2022-09-12T17:05:38] ERROR: error:0A080009:SSL routines::PEM lib [2022-09-12T17:05:54] INFO: OpenSSL 3.0.0 7 sep 2021 [2022-09-12T17:05:54] ERROR: could not use ssl private key: /Users/faraz/Library/Application Support/barrier/SSL/Barrier.pem [2022-09-12T17:05:54] ERROR: error:0A080009:SSL routines::PEM lib ``` ### Version v2.4.0 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? Snaps and github ### What OSes are you seeing the problem on? (Check all that apply) Linux, macOS ### What OS versions are you using? Ubuntu v22.04 OS X v12.5.1 ### Any other information For what it's worth, I am able to run everything without SSL, but I'd prefer to have it. Not sure where I went wrong when generating my own certificate.
Author
Owner

@xNS5 commented on GitHub (Sep 13, 2022):

I had a similar issue, and following these instructions have appeared to resolve my issues:

https://github.com/debauchee/barrier/issues/231#issuecomment-958800595

<!-- gh-comment-id:1245941785 --> @xNS5 commented on GitHub (Sep 13, 2022): I had a similar issue, and following these instructions have appeared to resolve my issues: https://github.com/debauchee/barrier/issues/231#issuecomment-958800595
Author
Owner

@fny commented on GitHub (Sep 14, 2022):

Closing due to other open issue.

<!-- gh-comment-id:1246168591 --> @fny commented on GitHub (Sep 14, 2022): Closing due to other open issue.
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#1308
No description provided.