I found a way to work around this, after some searching and testing. The
workaround is to use the SAME password for both keystore and its key, i.e.
keytool -keypass and -storepass shoud have the same arg.
After that, the following code will work on the client side (there is no change
to the server):
System.setProperty("javax.net.ssl.trustStore",
keystoreFile.getAbsolutePath());
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
System.setProperty("javax.net.ssl.keyStore",
keystoreFile.getAbsolutePath());
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
Client client = new Client(Protocol.HTTPS);
thanks.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2430929