Export and Import Certificates between Keystores and Truststores

Ajanthan Eliyathamby πŸ‡±πŸ‡°
1 min readApr 21, 2020

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.

--

--

Ajanthan Eliyathamby πŸ‡±πŸ‡°

Associate Architect β€” Enterprise Integration | 14x WSO2 | 1x HashiCorp | 1Γ— Azure | Runner-Up WCPY 2020 | https://ajanthane.blogspot.com