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.
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
You can disable the SSL Fingerprint from the barrier setting in both server and client. Then it will work smoothly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With