Package org.h2.dev.security
Class SecureKeyStoreBuilder
java.lang.Object
org.h2.dev.security.SecureKeyStoreBuilder
Tool to generate source code for the SecureSocketFactory. First, create a
keystore using:
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-
Method Summary
-
Method Details
-
main
This method is called when executing this application from the command line.- Parameters:
args- the command line parameters- Throws:
Exception
-