To export cert use keytool

-export -alias <cert_alias> -file cert.crt -keystore <keystore> -storepass <password>

To import cert use keytool

-import -alias <cert_alias> -file cert.crt -keystore <keystore> -storepass <password>

Advertisements