Juice-Labs / Juice-Labs

Juice Community Version Public Release
https://www.juicelabs.co/
MIT License
419 stars 29 forks source link

Error setting certificate file #100

Open Ge0rges opened 5 months ago

Ge0rges commented 5 months ago

Helo,

When running juice I get the following error. I am running on Rocky Linux 8. I am not sudo (nor should the program require it).

2024-02-08 14:59:28.774 client.cpp:519 1cbbf4 I] Build: 2023.08.10-2103.0633b794                                                                             
2024-02-08 14:59:28.800 client.cpp:834 1cbbf4 I] Requesting session from 76.146.231.104:43210                                                                
2024-02-08 14:59:28.872 client.cpp:848 1cbbf4 F] Unable to connect to server, error setting certificate file: /etc/ssl/certs/ca-certificates.crt 

In addition, it would be nice if Juice could be clear when writing to stdout about which messages come from it, by having something like a [JUICE] prefix. I thought for a while that this error was coming from the software juice was calling.

I should mention that the agent shows Warning: TLS is disabled, data will be unencrypted.

msameeh commented 2 months ago

It's looking for the CA certificates, I am not aware of a way to set this through juice.cfg

A quick work around was creating a symbolic link to the existing CA certs file, in my case this was: /etc/ssl/certs/ca-bundle.crt ln -s /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt