public class SecureKeyStoreBuilder
extends java.lang.Object
keytool -genkey -alias h2 -keyalg RSA -dname "cn=H2"
-validity 25000 -keypass h2pass -keystore h2.keystore
-storepass h2pass
Then run this application to generate the source code. Then replace the code
in the function SecureSocketFactory.getKeyStore as specified| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String... args)
This method is called when executing this application from the command
line.
|