If you are running above Tomcat you do not have to make any changes to XML-RPC to support SSL.  SSL is a configuration issue (keystores, truststores) and not a programming one.  If you are sending messages using the XML-RPC client then you have to make sure all the JVM system properties are set.  They are:
            System.setProperty("java.protocol.handler.pkgs",
                             "com.sun.net.ssl.internal.www.protocol");
           System.setProperty("javax.net.ssl.keyStore","d:\\testssl\\client");
           System.setProperty("javax.net.ssl.keyStorePassword","mcclure");
            System.setProperty("javax.net.ssl.trustStore","d:\\testssl\\jssecacerts");
            System.setProperty("javax.net.ssl.trustStorePassword","merlin");
            System.setProperty("com.sun.net.ssl.dhKeyExchangeFix", "true");
 
            try {
                Security.addProvider((Provider)Class.forName(
                     SecurityTool.getSecurityProviderClass()).newInstance());
         } catch (Exception ex) {
             System.err.println ("Error: "+ex.getMessage());
        }
 
Tim
-----Original Message-----
From: Tng Chee Hiong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 8:41 PM
To: [EMAIL PROTECTED]
Subject: XML-RPC and SSL

My current XML-RPC implementation is done using servlet-to-servlet communication (running in TomCat).
 
Now I need to implement XML-RPC on SSL.
I have downloaded JSSE and configured SSL support on TomCat.
But what changes should I make to my XML-RPC codes?
Can anyone provide some sample codes on using SSL with XML-RPC

Reply via email to