Creating a certificate in a Java keyStore
keytool -genkey -dname "cn=JavaCertName, ou=Department, o=Company, c=GB, st=StateOrCounty" -alias MyClient -storepass changeit -keypass changeit -keyStore keyStore
Creating a certificate request file from the newly created certificate
keytool -certreq -keystore keyStore -storepass changeit -keypass changeit -alias MyClient -file MyClient.crs
Command to Import the signed certificate
keytool -import -keystore keyStore -storepass changeit -alias MySignedClient -keypass changeit -import -file MyClient.cer