M
milicic.marko
Hi,
I managed to establish unsecure communication with client/server using
apache.xmlrpc library. But I can't establish secure connection. I have
sertificates, and keystores, but... how should I setup SecureTool.
Please, can somebody be so kind and post here minimal working code of
secureClient and SecureServer communication.
This is how I'm trying to handle this task:
Server:
SecurityTool.setKeyStore("path_to_server_keystore");
SecurityTool.setKeyStorePassword("******");
secureWebServer = new SecureWebServer(443);
secureWebServer.start();
secureWebServer.addHandler("user", new UserHandler());
Client:
SecurityTool.setKeyStore("path_to_client_keystore");
SecurityTool.setKeyStorePassword("collectit");
secureXmlRpcClient = new
SecureXmlRpcClient("https://localhost:443/");
I believe this is not enough. So, please, post your working code.
I managed to establish unsecure communication with client/server using
apache.xmlrpc library. But I can't establish secure connection. I have
sertificates, and keystores, but... how should I setup SecureTool.
Please, can somebody be so kind and post here minimal working code of
secureClient and SecureServer communication.
This is how I'm trying to handle this task:
Server:
SecurityTool.setKeyStore("path_to_server_keystore");
SecurityTool.setKeyStorePassword("******");
secureWebServer = new SecureWebServer(443);
secureWebServer.start();
secureWebServer.addHandler("user", new UserHandler());
Client:
SecurityTool.setKeyStore("path_to_client_keystore");
SecurityTool.setKeyStorePassword("collectit");
secureXmlRpcClient = new
SecureXmlRpcClient("https://localhost:443/");
I believe this is not enough. So, please, post your working code.