From c631130d4a4c58feefebe5d49fee89c80253dc61 Mon Sep 17 00:00:00 2001 From: khanh Date: Sat, 27 Aug 2022 02:01:25 +0800 Subject: [PATCH] Added Known Issues for missing SSL cert --- Known-Issues.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Known-Issues.md b/Known-Issues.md index dedb370..3e7ea43 100644 --- a/Known-Issues.md +++ b/Known-Issues.md @@ -14,6 +14,33 @@ This issues are some of the most common ones reported, and we aim Please feel free to inspect Barrier's [source code][src_code]. +## SSL CERTIFICATE DOES NOT EXIST + +- Barrier app on macOS and Windows currently does not generate SSL certificate automatically in server mode. + + Hence, user will find the error `ssl certificate doesn't exist: /Barrier.pem`. The `Barrier.pem` file is located differently in macOS and Windows. + + - macOS 12.5.1 + ```shell + /Users//Library/Application Support/barrier/SSL/Barrier.pem + ``` + + - Windows 11 21H2 + + ```shell + C:\Users\\AppData\Local\Barrier\SSL\Barrier.pem + ``` + + Use OpenSSL to generate SSL cert with the command below and copy it into the corresponding directory. + + ```shell + openssl req -x509 -nodes -days 9999 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem + ``` + + *Tested under WSL2 Windows 11. All credits to [cfarvidson](https://github.com/debauchee/barrier/issues/231#issuecomment-962421337)* + + + [wiki_repo]: https://github.com/debauchee/barrier-wiki [av_issue]: https://github.com/debauchee/barrier/issues/666