I have a Java client trying to access a server with a self-signed certificate.
When I try to Post to the server, I get the following error:
un
Check if the file $JAVA_HOME/lib/security/cacerts
exists!
In my case it was not a file but a link to /etc/ssl/certs/java/cacerts
and also this was a link to itself (WHAT???) so due to it JVM can't find the file.
Solution:
Copy the real cacerts file (you can do it from another JDK) to /etc/ssl/certs/java/
directory and it'll solve your problem :)