Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Michael Conley

Greenhorn
+ Follow
since Oct 14, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Conley

Greetings,
I have implemented the RMI over SSL. I have been using these lines to generate the keystores and keys necessary for the application to run:
keytool -genkey -v -keyalg RSA -keystore server.keystore -dname "CN=Server, OU=Bar, O=Foo, L=Some, ST=Where, C=UN"
keytool -genkey -v -keyalg RSA -keystore client.keystore -dname "CN=Client, OU=Bar, O=Foo, L=Some, ST=Where, C=UN"
keytool -export -rfc -keystore server.keystore -alias mykey -file server.public-key
keytool -export -rfc -keystore client.keystore -alias mykey -file client.public-key
keytool -import -alias client -keystore server.keystore -file client.public-key
keytool -import -alias server -keystore client.keystore -file server.public-key
Instead of generating these from a sample certificate, I would like to use the VeriSign certificates that come with the respective servers. Does anyone know how I might retrieve the public keys from these certificates?
Thanks,
-Mike
14 years ago
Try this in the policy file:
permission java.net.SocketPermission "*:1099", "connect,resolve";
You need resolve.
Good luck,
-Mike
14 years ago
Greetings,
I have implemented a solution from one server to another that uses RMI over SSL. The implementation is based off of the standard RMI/SSL examples and documentation that come with Java 1.4.
The problem is that server classes started with:
super(0, new RMISSLClientSocketFactory(), new RMISSLServerSocketFactory());
in the constructor exit within 1 minute. It is as if all of the object references are gone, so the JVM just closes out.
I have done some research on Google, and I saw two posts regarding this similiar problem. One person mentioned that they implemented a while (true) loop to keep the class running, however they could not make any more of the needed connections to the server class. Perhaps the server can only hang onto the RMI/SSL port for under a minute, then it releases. I don't know.
Any ideas?
Thank you.
-Mike
14 years ago