I have found tutorial for introducing the steps for generating keys. It tells the following steps:
keytool -genkey -alias clientprivate -keystore client.private -storetype JKS -keyalg rsa \
-dname "CN=Your Name, OU=Your Organizational Unit, O=Your Organization, L=Your City, \
S=Your State, C=Your Country" -storepass clientpw -keypass clientpw
keytool -genkey -alias serverprivate -keystore server.private -storetype JKS -keyalg rsa \
-dname "CN=Your Name, OU=Your Organizational Unit, O=Your Organization, L=Your City, \
S=Your State, C=Your Country" -storepass serverpw -keypass serverpw
keytool -export -alias clientprivate -keystore client.private \
-file temp.key -storepass clientpw
keytool -import -noprompt -alias clientpublic -keystore client.public \
-file temp.key -storepass public
keytool -export -alias serverprivate -keystore server.private \
-file temp.key -storepass serverpw
keytool -import -noprompt -alias serverpublic -keystore server.public \
-file temp.key -storepass public
But I am confused that where is the .jks files? And why we use temp.key? I you can answer my questions, I will be appreciated...