I deploy Play applications in distributed environments, backed by a remote MySQL database. Specifically, the applications are hosted on heroku, and the database is on Amazo
Just to update on All.
If you see the content of that pem it contains many certificates. Split it to multiple PEM files where each file will contain like this
-----BEGIN CERTIFICATE-----
[main content]
-----END CERTIFICATE-----
Then run this command for every cert file that you created
keytool -import \
-keystore $JAVA_HOME/jre/lib/security/cacerts \
-storepass changeit -noprompt \
-alias $ALIAS -file $YOUR_INDIVIDUAL_PEM_FILE
Just for making your life easy somebody has just created bash script for this : https://gist.github.com/shareefhiasat/dabe5e96dbd7123c7b101aac1c0eca8a