It should be possible to import etc as well using keytool. How do I make a keystore using keytool with a real certificate from EJBCA?
# First generate a new keystore and a keypair: keytool -genkey -alias mykey -keystore myks.jks -keyalg RSA -dname c=SE,O=AnaTom,CN=Test -keypass foo123 -storepass foo123 # You SUN keystore is now in the file ‘myks.jks’. # Next generate a certification request (PKCS10): keytool -certreq -alias mykey -sigalg SHA1WithRSA -file myreq.p10 -keypass foo123 -keystore myks.