[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    RE: XML-RPC and SSL
From:       Tim McClure <Tim.McClure () casi-rusco ! com>
Date:       2002-03-07 13:52:31
[Download RAW message or body]

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:tng@triosoftware.com.sg]
Sent: Wednesday, March 06, 2002 8:41 PM
To: rpc-user@xml.apache.org
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


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff size=2>If you 
are running above Tomcat you do not have to make any changes to XML-RPC to 
support SSL.&nbsp; SSL is a configuration issue (keystores, truststores) and not 
a programming one.&nbsp; If you are sending messages using the XML-RPC client 
then you have to make sure all the JVM system properties are set.&nbsp; They 
are:</FONT></SPAN></DIV>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.setProperty("java.protocol.handler.pkgs",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs \
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 "com.sun.net.ssl.internal.www.protocol");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 System.setProperty("javax.net.ssl.keyStore","d:\\testssl\\client");<BR>&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.setProperty("javax.net.ssl.keyStorePassword","mcclure");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 System.setProperty("javax.net.ssl.trustStore","d:\\testssl\\jssecacerts");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 System.setProperty("javax.net.ssl.trustStorePassword","merlin");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 System.setProperty("com.sun.net.ssl.dhKeyExchangeFix", 
"true");</FONT></SPAN></DIV>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 Security.addProvider((Provider)Class.forName(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \
SecurityTool.getSecurityProviderClass()).newInstance());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 } catch (Exception ex) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.err.println ("Error: 
"+ex.getMessage());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}</FONT></SPAN></DIV>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=407464613-07032002><FONT face=Arial color=#0000ff 
size=2>Tim</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Tng Chee Hiong 
  [mailto:tng@triosoftware.com.sg]<BR><B>Sent:</B> Wednesday, March 06, 2002 
  8:41 PM<BR><B>To:</B> rpc-user@xml.apache.org<BR><B>Subject:</B> XML-RPC and 
  SSL<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>My current XML-RPC implementation is done using 
  servlet-to-servlet communication (running in TomCat).</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Now I need to implement XML-RPC on 
  SSL.</FONT></DIV>
  <DIV><FONT face=Arial size=2>I&nbsp;have downloaded JSSE and configured SSL 
  support on TomCat.</FONT></DIV>
  <DIV><FONT face=Arial size=2>But what changes should I make to my XML-RPC 
  codes?</FONT></DIV>
  <DIV><FONT face=Arial size=2>Can anyone provide some sample codes on using SSL 
  with XML-RPC</FONT></DIV></BLOCKQUOTE></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic