Here are some useful commands when manipulating Java keystores. (I will update this post from time to time)
(default keystore password: changeit
)
Import a certficate into a Java keystore
Create a truststore from a PEM file
Create a truststore from a CER file
Import a list of certificates into a Java keystore
List the certificates of a keystore in a file report.txt
Get TLS certificate from an endpoint
Create a PKCS12 keystore with a Certificate+Private Key and a CA Root Certificate
Create a PKCS12 keystore with a Certificate+Private Key