Re: MYSQL + JAVA + SSL
Posted by: Alexander Soklakov
Date: September 23, 2013 07:39AM

Hi Niko,

1) you can use one keypair for any number of clients
2) please read http://dev.mysql.com/doc/refman/5.6/en/connector-j-reference-using-ssl.html, the short example is:

String trustStorePath = "src/testsuite/ssl-test-certs/test-cert-store"; System.setProperty("javax.net.ssl.keyStore", trustStorePath);
System.setProperty("javax.net.ssl.keyStorePassword", "password");
System.setProperty("javax.net.ssl.trustStore", trustStorePath);
System.setProperty("javax.net.ssl.trustStorePassword", "password");
props.setProperty("useSSL", "true");
props.setProperty("requireSSL", "true");
testConn = getConnectionWithProps(props); // getting connection as usual



Edited 1 time(s). Last edit at 09/23/2013 07:39AM by Alexander Soklakov.

Options: ReplyQuote


Subject
Written By
Posted
September 19, 2013 05:54AM
Re: MYSQL + JAVA + SSL
September 23, 2013 07:39AM


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.