Create a JKS file with a private certificate.
keytool -genkey -alias nuwanw -keyalg RSA -keysize 1024 -keypass mypassoword
-keystore sample.jks -storepass mypassword
List the alias of a given keystore
keytool -list -v -keystore sample.jks -storepass mypassword
Export public certificate of the service alies nuwanw
keytool -export -alias nuwanw -keystore sample.jks -storepass mypassword
-file publicCert.pem
Import public certificate into a Trust Store.
keytool -import -alias nuwanw -file serviceCert.pem -keystore sample-trust-store.jks
-storepass mypassword
No comments:
Post a Comment