MySQL Forums
Forum List  »  Security

SSL with signed jar
Posted by: Anestis Sismanidis
Date: December 23, 2009 06:31AM

Hello! If you are bored to read, just read the question an the end.

After a lot of effort I have managed to connect to MySQL with SSL like this:

java
-Djavax.net.ssl.keyStore=mykeystore
-Djavax.net.ssl.keyStorePassword=mykeystorepassword
-Djavax.net.ssl.trustStore=mytruststore
-Djavax.net.ssl.trustStorePassword=mytruststorepassword
-cp myapp.jar com.myapp.Main

But this way, mykeystore is exposed. Anyone could just take it and connect to my server. Am I missing something?

I tried to sign my jar with the keystore and connect like this:

java
-Djavax.net.ssl.trustStore=mytruststore
-Djavax.net.ssl.trustStorePassword=mytruststorepassword
-cp myapp.jar com.myapp.Main

but it failed.

The question:

Is there a way to connect to MySQL (using SSL) through a signed jar? Have you done it?

Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
SSL with signed jar
3972
December 23, 2009 06:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.