List all the trusted public Root CAs in your Java truststore
Navigate to the $JAVA_HOME/jre/lib/security folder for the cacerts file
cacerts is the default Java truststore. A truststore authenticates peers. A keystore authenticates yourself. cacerts is where Java stores public certificates of trusted Root CAs
Use the following command (on Unix, a similar command is available in other OSes) to list the existing certs in the truststore:
keytool -keystore $JAVA_HOME/jre/lib/security/cacerts -listThe default password for the truststore: changeit