You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Peter Glynn <gl...@tcd.ie> on 2001/03/12 14:15:01 UTC

SSL

Hi All,
Has anybody used the SSL in Apache Soap 2.1. Best way to implement? Any sample code? Best place to start?
Thanks,
Peter

Re: SSL

Posted by Jeremy Lemaire <jl...@otcex.com>.
> Peter Glynn wrote:
> 
> Hi All,
> Has anybody used the SSL in Apache Soap 2.1. Best way to implement?
> Any sample code? Best place to start?
> Thanks,
> Peter

The response has already been posted but anyway, first you've to import
your server certificate in your
keystore file, and then add the following proporties :

// setup of the properties
java.util.Properties props = System.getProperties();
props.put("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
props.put("javax.net.debug","ssl,handshake,data,trustmanager"); // for
debugging
props.put("javax.net.ssl.trustStore", "/usr/share/keys/keystore");
    
(assuming that your are using JSSE)
   
then you can use an Https URL like that:
URL url = new URL( "https://localhost:80/soap/servlet/rpcrouter");



Jeremy.

Re: SSL

Posted by Jeremy Lemaire <jl...@otcex.com>.
> Peter Glynn wrote:
> 
> Hi All,
> Has anybody used the SSL in Apache Soap 2.1. Best way to implement?
> Any sample code? Best place to start?
> Thanks,
> Peter

The response has already been posted but anyway, first you've to import
your server certificate in your
keystore file, and then add the following proporties :

// setup of the properties
java.util.Properties props = System.getProperties();
props.put("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
props.put("javax.net.debug","ssl,handshake,data,trustmanager"); // for
debugging
props.put("javax.net.ssl.trustStore", "/usr/share/keys/keystore");
    
(assuming that your are using JSSE)
   
then you can use an Https URL like that:
URL url = new URL( "https://localhost:80/soap/servlet/rpcrouter");



Jeremy.