Have you imported the certificate into the cacerts keystore or created your own keystore? If you've created your own, you need to make sure that the format of the keystore is PKCS12.
You can find here example of commands to import the certificates into Javas cacerts.
BR,
Oana