Tuesday, August 18, 2009

How to import/export certificates using Java keytool?

\>keytool -import -alias localhost -keystore wso2carbon.jks -file mycert.cer

The above will import the certificate mycert.cer to the keystore wso2carbon.jks - and will be stored with the alias localhost

\>keytool -export -alias localhost -keystore wso2carbon.jks -file mycert.cer

The above will export the certificate having the alias 'localhost' from the keystore wso2carbon.jks - to mycert.cer

0 comments:

Post a Comment