Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: ssl certificate doesn't exist: /home/rsvay/snap/barrier-kvm/2/.local/share/barrier/SSL/Barrier.pem

I am a frequent user of Barrier-kvm. I recently upgraded my server to Ubuntu 20.04 and started getting error "ERROR: ssl certificate doesn't exist: /home/rsvay/snap/barrier-kvm/2/.local/share/barrier/SSL/Barrier.pem". I was unable to get any answer using key word "Barrier-kvm" and it took me hours to solve the problem. So i want to share my solution.

like image 389
Rsvay Avatar asked Sep 06 '25 03:09

Rsvay


2 Answers

Copy the path to SSL directory which you can find in your error. "ERROR: ssl certificate doesn't exist: /home/rsvay/snap/barrier-kvm/2/.local/share/barrier/SSL/Barrier.pem "
In this case : "/home/rsvay/snap/barrier-kvm/2/.local/share/barrier/SSL/"

Then run the following commands:

cd  "path to your SSL"
mkdir -p Fingerprints
openssl req -x509 -nodes -days 365 -subj /CN=barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
openssl x509 -fingerprint -sha256 -noout -in Barrier.pem > Fingerprints/Local.txt
sed -e "s/.*=/v2:sha256:/" -i Fingerprints/Local.txt
like image 103
Rsvay Avatar answered Sep 07 '25 19:09

Rsvay


You can disable the SSL Fingerprint from the barrier setting in both server and client. Then it will work smoothly.

Image for reference

like image 45
Badhan Sen Avatar answered Sep 07 '25 21:09

Badhan Sen