Export and Import Certificates between Keystores and Truststores
This article explains how to transfer public certificate and private key entries between keystore and truststore.
Consider we need to export the certificates from base-keystore.p12, base-truststore.jks and import it to transfer-keystore.p12,transfer-truststore.jks. Follow the below steps to achieve it.
Also to update the passwords can use the below commands.