Generate Keystore
keytool -genkey -alias alice -keyalg RSA -keysize 2048 -keystore interop2.jks -dname "CN=Alice, OU=Wso2, O=Wso2, L=Wso2, ST=Wso2, C=LK" -storepass password -keypass password
View Keystore details
keytool -v -list -keystore interop2.jks
Export certificate from Keystore
keytool -export -alias alice -keystore interop2.jks -file interop2alice.pem
Import certificates to Truststore
keytool -import -alias alice -file interop2alice.pem -keystore sts.jks -storepass password
Top comments (0)