List certificates
keytool -list -keystore keystore.jks -v
keytool -list -keystore server.p12 -storetype PKCS12 -v
Convert from JKS to P12
keytool -importkeystore -srckeystore keystore.jks \
-srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12
Convert from P12 to JKS
keytool -importkeystore -srckeystore keystore.p12 \
-srcstoretype PKCS12 -deststoretype JKS -destkeystore keystore.jks
Import a root or intermediate CA certificate to an existing Java keystore
keytool -import -trustcacerts -alias rootCA -file CAcert.crt \
-keystore keystore.jks