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
ERROR: ssl certificate doesn't exist: C:\Users\xxxx\AppData\Local\Barrier\SSL\Barrier.pem #1952
Comments
I am getting essentially the same message on Debian Bookworm running 2.4.0. Barrier worked fine on Debian bullseye (this was apparently 2.3.3). |
I was getting the same error on macOS Ventura and Windows 11. If its an acceptable workaround in your case, you can disable SSL by opening barrier's settings and unchecking "Use SSL". I did that on both machines and it works again. I understand its less secure but then in a private instance it's probably fine |
Hi! I have |
same for me between 2 mac
|
I was experiencing this on my linux debian bookworm flatpak and my windows 10 computer. I dont know why, but I found some clues in this thread that led me to be able to resolve it on both platforms. On the arch wiki linked above it says
and proceed to suggest the following commands
being on flatpak I had to change Windows was a little tricker, I had to download the
now things are working. I don't know why cert gen isn't working, in this release, that would be the real solution, but until then, this is what I did to get things going. I am using this at the office network with ~20 other users on the network and I don't want my input unencrypted. |
The above one works! Just make sure to write the commands correctly! |
I do confirm : it works 👍 ! the only think was that barrier didn't accept to run anymore (but I migrated my OS from Monterey to Ventura in between) - it was just starting and disappearing. |
A macOS workaround is here. |
on windows just use ssl generate powershell script from #1377 (comment) to generate the missing ssl cert: $cert = New-SelfSignedCertificate -DnsName Barrier -KeyExportPolicy Exportable
# Public key to Base64
$CertBase64 = [System.Convert]::ToBase64String($cert.RawData, 'InsertLineBreaks')
# Private key to Base64
$RSACng = [System.Security.Cryptography.X509Certificates.RSACertificateExtensions]::GetRSAPrivateKey($cert)
$KeyBytes = $RSACng.Key.Export([System.Security.Cryptography.CngKeyBlobFormat]::Pkcs8PrivateBlob)
$KeyBase64 = [System.Convert]::ToBase64String($KeyBytes, [System.Base64FormattingOptions]::InsertLineBreaks)
# Put it all together
$Pem = @"
-----BEGIN PRIVATE KEY-----
$KeyBase64
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
$CertBase64
-----END CERTIFICATE-----
"@
# Output to file
$Pem | Out-File -FilePath $env:LOCALAPPDATA\Barrier\SSL\Barrier.pem -Encoding Ascii |
Duplicate. #231 See this comment for the known fixes: #231 (comment) |
What happened?
On desktop and on laptop same error:
ERROR: ssl certificate doesn't exist: C:\Users\xxxx\AppData\Local\Barrier\SSL\Barrier.pem
Version
v2.4.0
Git commit hash (if applicable)
No response
If applicable, where did you install Barrier from?
Chocolately
What OSes are you seeing the problem on? (Check all that apply)
Windows
What OS versions are you using?
22H2 19045.3155
Relevant log output
Any other information
Barrier.pem does not exist
The text was updated successfully, but these errors were encountered: