 <p>This seems to be a problem on Ubuntu (perhaps other Debian-based distros) with the Java CACerts keystore. For some reason this does not always include the full list of entries.</p> <p>To solve this, try the following:</p> <ul> <li><p>Delete the cacerts file</p> <p><code>sudo rm /etc/ssl/certs/java/cacerts</code></p></li> <li><p>Re-build the cacerts file using the dpkg postinstall script:</p> <p><code>sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure</code></p></li> </ul> <p>This should re-generate the cacerts file and the problem should be resolved.</p>