1Link : https://medium.com/expedia-group-tech/how-to-import-public-certificates-into-javas-truststore-from-a-browser-a35e49a806dc
1List all the trusted public Root CAs in your Java truststore
2Navigate to the $JAVA_HOME/jre/lib/security folder for the cacerts file
3cacerts is the default Java truststore. A truststore authenticates peers. A keystore authenticates yourself. cacerts is where Java stores public certificates of trusted Root CAs
4Use the following command (on Unix, a similar command is available in other OSes) to list the existing certs in the truststore:
5
6keytool -keystore $JAVA_HOME/jre/lib/security/cacerts -listThe default password for the truststore: changeit