'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.
Solution 1:[1]
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 -sha1 -noout -in Barrier.pem > Fingerprints/Local.txt
sed -e "s/.*=//" -i Fingerprints/Local.txt
Solution 2:[2]
Rsvay's solution worked for me after I corrected the file name. capitalize the B: change 'barrier.pem' to 'Barrier.pem'
$ mv ~/.local/share/barrier/SSL/barrier.pem ~/.local/share/barrier/SSL/Barrier.pem
Solution 3:[3]
It worked for me in Ubuntu 20.04. However the barrier.pem file generated after running the code is case sensitive, I had to change to Barrier.pem and it runs perfectly.
Solution 4:[4]
You can disable the SSL Fingerprint from the barrier setting in both server and client. Then it will work smoothly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Eugene Sajine |
Solution 2 | |
Solution 3 | cigien |
Solution 4 | Badhan Sen |