Java Keystore Operations
Navigate to %JAVA_HOME%\bin or add this path to environment variables.Generate key in keystore :
keytool -genkey -keystore {path}\{name}.keystore -alias {alias} -keyalg RSA
List files in a keystore :
keytool -list -v -keystore {path}\{name}.keystore
Export certificate from keystore :
keytool -export -keystore {path}\{name}.keystore -alias {alias} -file {destination}
Import certificate to keystore :
keytool -import -keystore {path}\{name}.keystore -alias {alias2} -file {destination}
0 Yorum