Thanks for your help.  This email resolved me question.



Try this link:
http://marc.theaimsgroup.com/?l=rpc-user&m=102009663407418&w=2

It's the archive for this and many other lists.  I provide some sample
code for xmlrpc to a https url.  Check out the setupSSL()
function which registers the https handler class so that URLConnection
knows how to establish an ssl connection.

If you have any questions, feel free to email me directly.



                                                                                       
                                                
                      "James O. Flynn"                                                 
                                                
                      <james@melloworld        To:       [EMAIL PROTECTED]       
                                                
                      .com>                    cc:                                     
                                                
                                               Subject:  Re: SSL & Secure Client       
                                                
                      09/09/02 12:05 PM                                                
                                                
                      Please respond to                                                
                                                
                      rpc-user                                                         
                                                
                                                                                       
                                                
                                                                                       
                                                




Been through some of the same pain. Quite seperately from using the
SecureClient, you may want
to prime the java secure socket factory using the java security stuff, let
me dig out some of
what I did...

             /// Not too sure what all of this is for.

             SSLContext context = SSLContext.getInstance( "TLS" );
             KeyManagerFactory keyFactory = KeyManagerFactory.getInstance
( "SunX509" );
             KeyStore store = KeyStore.getInstance( "JKS" );
             store.load( new FileInputStream( keyFile ), passphrase );
             keyFactory.init( store, passphrase );
             context.init( keyFactory.getKeyManagers(), null, null );

             client = new SecureXmlRpcClient( "https://someurl..."; );
             ...

This didn't work for me, but I was trying to use PKCS12 keys with java 1.3
and for some
reason it NullPointerExceptioned deep in the native stuff. Might give you
luck.
Cheers,
James.
--
4920616d206e6f742061206e756d62657221

Junk mail systematically deleted.





Reply via email to