Jump to content

Networking failure for Updater/Client with OpenJDK 10 on Ubuntu 18.04+ with error re: "trustAnchors"

Recommended Posts

Note: This solution does not apply to older versions of Ubuntu / Debian.




On recent versions of Ubuntu (17.10+) / Debian (Buster+), PokeMMO may fail to connect to secure servers with the error:

javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

This may occur with both the Updater and Game Client.




Ubuntu 18.04 distributes a broken ca-certificates-java package which is incompatible with Java 10. To resolve this:


  1. Open a Terminal
  2. Type the following commands:
sudo sed -i 's/keystore.type=\s*pkcs12/keystore.type=jks/' /etc/java-*/security/java.security
sudo rm /etc/ssl/certs/java/cacerts
sudo update-ca-certificates -f

Afterwards, relaunch PokeMMO.

Link to comment
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.