You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Rich Catlett <ri...@more.net> on 2001/07/30 19:56:35 UTC

Using soap over ssl

I can't get soap to work over ssl.  It seems to come down to the fact 
that everytime I try to create a URL using the https protocol I get an 
error saying
java.net.MalformedURLException: unknown protocol: https

before I try to create the URL I do this

System.setProperty("java.protocol.handler.pkgs", 
"com.sun.net.ssl.internal.www.protocol");

so that I

use Sun's reference implementation of a URL handler for the "https" URL protocol type.
 
I'm stumped, can anyone help.

Rich Catlett


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
Another thing along this line is that currently soap services cannot be 
deployed via the command line for this same reason, https is an 
unrecognized protocol and it causes a MalformedUrlException to be thrown.

Rich Catlett wrote:

> I can't get anything to work because the first thing that clients do 
> is create a URL to send the roap request to i.e 
> http://localhost:445/soap/servlet/messagerouter.  When the clients try 
> to do this with ssl i.e 
> https://localhost:445/soap/servlet/messagerouter that is when I get 
> the malformed.URLException: https unknown protocol.  Until
> new URL("https://localhost:445/soap/servlet/messagerouter") works I am 
> stuck.  The java.net.URL class does not understand the https protocol, 
> and the com.sun.net.ssl.internal.www.protocol package contains 
> everything except a URL class that understands the https protocol.
> 
> Rich Catlett
> 
> 
> Abraham Kang wrote:
> 
>> Hey Rich,
>> 
>> Have you gotten a simple client to work with https.
>> 
>> I would try to get things working that way first.  I also would check 
>> if the
>> JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
>> classpath or in
>> <JAVA_HOME>/jre/lib/ext .
>> 
>> Hope this helps,
>> Abraham
>> 
>>> -----Original Message-----
>>> From: Rich Catlett [mailto:rich@more.net]
>>> Sent: Monday, July 30, 2001 1:27 PM
>>> To: soap-user@xml.apache.org
>>> Subject: Re: Using soap over ssl
>>> 
>>> 
>>> I can't even get to where I'm dealing with certs.  No transmissions are
>>> even sent because the client does not understand the https protocol
>>> therefore it cannot create an https url.
>>> 
>>> Abraham Kang wrote:
>>> 
>>>> Hi Rich,
>>>> 
>>>>    Did you also set(in the beginning of your code):
>>>> 
>>>>     java.security.Security.addProvider(new
>>>> com.sun.net.ssl.internal.ssl.Provider());
>>>> 
>>>>    I guess you have already installed JSSE.
>>>> 
>>>>    If your server is running a test certificate you will need
>>> 
>>> 
>>> to import the
>>> 
>>>> correct CA root cert into your truststore using:
>>>> 
>>>>    keytool -import -file rootCACert -trustcacerts -alias
>>>> yourCAalias -keystore c:/pathToYourTrustStore
>>>> 
>>>> You might also need the following in your code if using a Test Cert:
>>>> 
>>>>       System.setProperty("javax.net.ssl.truststore",
>>>> "c:/pathToYourTrustStore");
>>>> 
>>> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
>>> 
>>>> Good Luck,
>>>> Abraham
>>>> 
>>>>> -----Original Message-----
>>>>> From: Rich Catlett [mailto:rich@more.net]
>>>>> Sent: Monday, July 30, 2001 10:57 AM
>>>>> To: soap-user@xml.apache.org
>>>>> Subject: Using soap over ssl
>>>>> 
>>>>> 
>>>>> I can't get soap to work over ssl.  It seems to come down to the fact
>>>>> that everytime I try to create a URL using the https protocol I 
>>>>> get an
>>>>> error saying
>>>>> java.net.MalformedURLException: unknown protocol: https
>>>>> 
>>>>> before I try to create the URL I do this
>>>>> 
>>>>> System.setProperty("java.protocol.handler.pkgs",
>>>>> "com.sun.net.ssl.internal.www.protocol");
>>>>> 
>>>>> so that I
>>>>> 
>>>>> use Sun's reference implementation of a URL handler for the
>>>>> "https" URL protocol type.
>>>>> 
>>>>> I'm stumped, can anyone help.
>>>>> 
>>>>> Rich Catlett
>>>>> 
>>>>> 
> 


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
Another thing along this line is that currently soap services cannot be 
deployed via the command line for this same reason, https is an 
unrecognized protocol and it causes a MalformedUrlException to be thrown.

Rich Catlett wrote:

> I can't get anything to work because the first thing that clients do 
> is create a URL to send the roap request to i.e 
> http://localhost:445/soap/servlet/messagerouter.  When the clients try 
> to do this with ssl i.e 
> https://localhost:445/soap/servlet/messagerouter that is when I get 
> the malformed.URLException: https unknown protocol.  Until
> new URL("https://localhost:445/soap/servlet/messagerouter") works I am 
> stuck.  The java.net.URL class does not understand the https protocol, 
> and the com.sun.net.ssl.internal.www.protocol package contains 
> everything except a URL class that understands the https protocol.
> 
> Rich Catlett
> 
> 
> Abraham Kang wrote:
> 
>> Hey Rich,
>> 
>> Have you gotten a simple client to work with https.
>> 
>> I would try to get things working that way first.  I also would check 
>> if the
>> JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
>> classpath or in
>> <JAVA_HOME>/jre/lib/ext .
>> 
>> Hope this helps,
>> Abraham
>> 
>>> -----Original Message-----
>>> From: Rich Catlett [mailto:rich@more.net]
>>> Sent: Monday, July 30, 2001 1:27 PM
>>> To: soap-user@xml.apache.org
>>> Subject: Re: Using soap over ssl
>>> 
>>> 
>>> I can't even get to where I'm dealing with certs.  No transmissions are
>>> even sent because the client does not understand the https protocol
>>> therefore it cannot create an https url.
>>> 
>>> Abraham Kang wrote:
>>> 
>>>> Hi Rich,
>>>> 
>>>>    Did you also set(in the beginning of your code):
>>>> 
>>>>     java.security.Security.addProvider(new
>>>> com.sun.net.ssl.internal.ssl.Provider());
>>>> 
>>>>    I guess you have already installed JSSE.
>>>> 
>>>>    If your server is running a test certificate you will need
>>> 
>>> 
>>> to import the
>>> 
>>>> correct CA root cert into your truststore using:
>>>> 
>>>>    keytool -import -file rootCACert -trustcacerts -alias
>>>> yourCAalias -keystore c:/pathToYourTrustStore
>>>> 
>>>> You might also need the following in your code if using a Test Cert:
>>>> 
>>>>       System.setProperty("javax.net.ssl.truststore",
>>>> "c:/pathToYourTrustStore");
>>>> 
>>> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
>>> 
>>>> Good Luck,
>>>> Abraham
>>>> 
>>>>> -----Original Message-----
>>>>> From: Rich Catlett [mailto:rich@more.net]
>>>>> Sent: Monday, July 30, 2001 10:57 AM
>>>>> To: soap-user@xml.apache.org
>>>>> Subject: Using soap over ssl
>>>>> 
>>>>> 
>>>>> I can't get soap to work over ssl.  It seems to come down to the fact
>>>>> that everytime I try to create a URL using the https protocol I 
>>>>> get an
>>>>> error saying
>>>>> java.net.MalformedURLException: unknown protocol: https
>>>>> 
>>>>> before I try to create the URL I do this
>>>>> 
>>>>> System.setProperty("java.protocol.handler.pkgs",
>>>>> "com.sun.net.ssl.internal.www.protocol");
>>>>> 
>>>>> so that I
>>>>> 
>>>>> use Sun's reference implementation of a URL handler for the
>>>>> "https" URL protocol type.
>>>>> 
>>>>> I'm stumped, can anyone help.
>>>>> 
>>>>> Rich Catlett
>>>>> 
>>>>> 
> 


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
I can't get anything to work because the first thing that clients do is 
create a URL to send the roap request to i.e 
http://localhost:445/soap/servlet/messagerouter.  When the clients try 
to do this with ssl i.e https://localhost:445/soap/servlet/messagerouter 
that is when I get the malformed.URLException: https unknown protocol.  
Until
new URL("https://localhost:445/soap/servlet/messagerouter") works I am 
stuck.  The java.net.URL class does not understand the https protocol, 
and the com.sun.net.ssl.internal.www.protocol package contains 
everything except a URL class that understands the https protocol.

Rich Catlett


Abraham Kang wrote:

> Hey Rich,
> 
> Have you gotten a simple client to work with https.
> 
> I would try to get things working that way first.  I also would check if the
> JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
> classpath or in
> <JAVA_HOME>/jre/lib/ext .
> 
> Hope this helps,
> Abraham
> 
>> -----Original Message-----
>> From: Rich Catlett [mailto:rich@more.net]
>> Sent: Monday, July 30, 2001 1:27 PM
>> To: soap-user@xml.apache.org
>> Subject: Re: Using soap over ssl
>> 
>> 
>> I can't even get to where I'm dealing with certs.  No transmissions are
>> even sent because the client does not understand the https protocol
>> therefore it cannot create an https url.
>> 
>> Abraham Kang wrote:
>> 
>>> Hi Rich,
>>> 
>>>    Did you also set(in the beginning of your code):
>>> 
>>> 	java.security.Security.addProvider(new
>>> com.sun.net.ssl.internal.ssl.Provider());
>>> 
>>>    I guess you have already installed JSSE.
>>> 
>>>    If your server is running a test certificate you will need
>> 
>> to import the
>> 
>>> correct CA root cert into your truststore using:
>>> 
>>>    keytool -import -file rootCACert -trustcacerts -alias
>>> yourCAalias -keystore c:/pathToYourTrustStore
>>> 
>>> You might also need the following in your code if using a Test Cert:
>>> 
>>>       System.setProperty("javax.net.ssl.truststore",
>>> "c:/pathToYourTrustStore");
>>> 
>> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
>> 
>>> Good Luck,
>>> Abraham
>>> 
>>>> -----Original Message-----
>>>> From: Rich Catlett [mailto:rich@more.net]
>>>> Sent: Monday, July 30, 2001 10:57 AM
>>>> To: soap-user@xml.apache.org
>>>> Subject: Using soap over ssl
>>>> 
>>>> 
>>>> I can't get soap to work over ssl.  It seems to come down to the fact
>>>> that everytime I try to create a URL using the https protocol I get an
>>>> error saying
>>>> java.net.MalformedURLException: unknown protocol: https
>>>> 
>>>> before I try to create the URL I do this
>>>> 
>>>> System.setProperty("java.protocol.handler.pkgs",
>>>> "com.sun.net.ssl.internal.www.protocol");
>>>> 
>>>> so that I
>>>> 
>>>> use Sun's reference implementation of a URL handler for the
>>>> "https" URL protocol type.
>>>> 
>>>> I'm stumped, can anyone help.
>>>> 
>>>> Rich Catlett
>>>> 
>>>> 


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
I can't get anything to work because the first thing that clients do is 
create a URL to send the roap request to i.e 
http://localhost:445/soap/servlet/messagerouter.  When the clients try 
to do this with ssl i.e https://localhost:445/soap/servlet/messagerouter 
that is when I get the malformed.URLException: https unknown protocol.  
Until
new URL("https://localhost:445/soap/servlet/messagerouter") works I am 
stuck.  The java.net.URL class does not understand the https protocol, 
and the com.sun.net.ssl.internal.www.protocol package contains 
everything except a URL class that understands the https protocol.

Rich Catlett


Abraham Kang wrote:

> Hey Rich,
> 
> Have you gotten a simple client to work with https.
> 
> I would try to get things working that way first.  I also would check if the
> JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
> classpath or in
> <JAVA_HOME>/jre/lib/ext .
> 
> Hope this helps,
> Abraham
> 
>> -----Original Message-----
>> From: Rich Catlett [mailto:rich@more.net]
>> Sent: Monday, July 30, 2001 1:27 PM
>> To: soap-user@xml.apache.org
>> Subject: Re: Using soap over ssl
>> 
>> 
>> I can't even get to where I'm dealing with certs.  No transmissions are
>> even sent because the client does not understand the https protocol
>> therefore it cannot create an https url.
>> 
>> Abraham Kang wrote:
>> 
>>> Hi Rich,
>>> 
>>>    Did you also set(in the beginning of your code):
>>> 
>>> 	java.security.Security.addProvider(new
>>> com.sun.net.ssl.internal.ssl.Provider());
>>> 
>>>    I guess you have already installed JSSE.
>>> 
>>>    If your server is running a test certificate you will need
>> 
>> to import the
>> 
>>> correct CA root cert into your truststore using:
>>> 
>>>    keytool -import -file rootCACert -trustcacerts -alias
>>> yourCAalias -keystore c:/pathToYourTrustStore
>>> 
>>> You might also need the following in your code if using a Test Cert:
>>> 
>>>       System.setProperty("javax.net.ssl.truststore",
>>> "c:/pathToYourTrustStore");
>>> 
>> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
>> 
>>> Good Luck,
>>> Abraham
>>> 
>>>> -----Original Message-----
>>>> From: Rich Catlett [mailto:rich@more.net]
>>>> Sent: Monday, July 30, 2001 10:57 AM
>>>> To: soap-user@xml.apache.org
>>>> Subject: Using soap over ssl
>>>> 
>>>> 
>>>> I can't get soap to work over ssl.  It seems to come down to the fact
>>>> that everytime I try to create a URL using the https protocol I get an
>>>> error saying
>>>> java.net.MalformedURLException: unknown protocol: https
>>>> 
>>>> before I try to create the URL I do this
>>>> 
>>>> System.setProperty("java.protocol.handler.pkgs",
>>>> "com.sun.net.ssl.internal.www.protocol");
>>>> 
>>>> so that I
>>>> 
>>>> use Sun's reference implementation of a URL handler for the
>>>> "https" URL protocol type.
>>>> 
>>>> I'm stumped, can anyone help.
>>>> 
>>>> Rich Catlett
>>>> 
>>>> 


RE: Using soap over ssl

Posted by Abraham Kang <ab...@infogain.com>.
Hey Rich,

Have you gotten a simple client to work with https.

I would try to get things working that way first.  I also would check if the
JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
classpath or in
<JAVA_HOME>/jre/lib/ext .

Hope this helps,
Abraham

> -----Original Message-----
> From: Rich Catlett [mailto:rich@more.net]
> Sent: Monday, July 30, 2001 1:27 PM
> To: soap-user@xml.apache.org
> Subject: Re: Using soap over ssl
>
>
> I can't even get to where I'm dealing with certs.  No transmissions are
> even sent because the client does not understand the https protocol
> therefore it cannot create an https url.
>
> Abraham Kang wrote:
>
> > Hi Rich,
> >
> >    Did you also set(in the beginning of your code):
> >
> > 	java.security.Security.addProvider(new
> > com.sun.net.ssl.internal.ssl.Provider());
> >
> >    I guess you have already installed JSSE.
> >
> >    If your server is running a test certificate you will need
> to import the
> > correct CA root cert into your truststore using:
> >
> >    keytool -import -file rootCACert -trustcacerts -alias
> > yourCAalias -keystore c:/pathToYourTrustStore
> >
> > You might also need the following in your code if using a Test Cert:
> >
> >       System.setProperty("javax.net.ssl.truststore",
> > "c:/pathToYourTrustStore");
> >
> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
> >
> > Good Luck,
> > Abraham
> >
> >> -----Original Message-----
> >> From: Rich Catlett [mailto:rich@more.net]
> >> Sent: Monday, July 30, 2001 10:57 AM
> >> To: soap-user@xml.apache.org
> >> Subject: Using soap over ssl
> >>
> >>
> >> I can't get soap to work over ssl.  It seems to come down to the fact
> >> that everytime I try to create a URL using the https protocol I get an
> >> error saying
> >> java.net.MalformedURLException: unknown protocol: https
> >>
> >> before I try to create the URL I do this
> >>
> >> System.setProperty("java.protocol.handler.pkgs",
> >> "com.sun.net.ssl.internal.www.protocol");
> >>
> >> so that I
> >>
> >> use Sun's reference implementation of a URL handler for the
> >> "https" URL protocol type.
> >>
> >> I'm stumped, can anyone help.
> >>
> >> Rich Catlett
> >>
> >>
>
>


RE: Using soap over ssl

Posted by Abraham Kang <ab...@infogain.com>.
Hey Rich,

Have you gotten a simple client to work with https.

I would try to get things working that way first.  I also would check if the
JSSE jars (jnet.jar, jssse.jar, jce.jar) are installed correctly on the
classpath or in
<JAVA_HOME>/jre/lib/ext .

Hope this helps,
Abraham

> -----Original Message-----
> From: Rich Catlett [mailto:rich@more.net]
> Sent: Monday, July 30, 2001 1:27 PM
> To: soap-user@xml.apache.org
> Subject: Re: Using soap over ssl
>
>
> I can't even get to where I'm dealing with certs.  No transmissions are
> even sent because the client does not understand the https protocol
> therefore it cannot create an https url.
>
> Abraham Kang wrote:
>
> > Hi Rich,
> >
> >    Did you also set(in the beginning of your code):
> >
> > 	java.security.Security.addProvider(new
> > com.sun.net.ssl.internal.ssl.Provider());
> >
> >    I guess you have already installed JSSE.
> >
> >    If your server is running a test certificate you will need
> to import the
> > correct CA root cert into your truststore using:
> >
> >    keytool -import -file rootCACert -trustcacerts -alias
> > yourCAalias -keystore c:/pathToYourTrustStore
> >
> > You might also need the following in your code if using a Test Cert:
> >
> >       System.setProperty("javax.net.ssl.truststore",
> > "c:/pathToYourTrustStore");
> >
> System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
> >
> > Good Luck,
> > Abraham
> >
> >> -----Original Message-----
> >> From: Rich Catlett [mailto:rich@more.net]
> >> Sent: Monday, July 30, 2001 10:57 AM
> >> To: soap-user@xml.apache.org
> >> Subject: Using soap over ssl
> >>
> >>
> >> I can't get soap to work over ssl.  It seems to come down to the fact
> >> that everytime I try to create a URL using the https protocol I get an
> >> error saying
> >> java.net.MalformedURLException: unknown protocol: https
> >>
> >> before I try to create the URL I do this
> >>
> >> System.setProperty("java.protocol.handler.pkgs",
> >> "com.sun.net.ssl.internal.www.protocol");
> >>
> >> so that I
> >>
> >> use Sun's reference implementation of a URL handler for the
> >> "https" URL protocol type.
> >>
> >> I'm stumped, can anyone help.
> >>
> >> Rich Catlett
> >>
> >>
>
>


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
I can't even get to where I'm dealing with certs.  No transmissions are 
even sent because the client does not understand the https protocol 
therefore it cannot create an https url.

Abraham Kang wrote:

> Hi Rich,
> 
>    Did you also set(in the beginning of your code):
> 
> 	java.security.Security.addProvider(new
> com.sun.net.ssl.internal.ssl.Provider());
> 
>    I guess you have already installed JSSE.
> 
>    If your server is running a test certificate you will need to import the
> correct CA root cert into your truststore using:
> 
>    keytool -import -file rootCACert -trustcacerts -alias
> yourCAalias -keystore c:/pathToYourTrustStore
> 
> You might also need the following in your code if using a Test Cert:
> 
>       System.setProperty("javax.net.ssl.truststore",
> "c:/pathToYourTrustStore");
>       System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
> 
> Good Luck,
> Abraham
> 
>> -----Original Message-----
>> From: Rich Catlett [mailto:rich@more.net]
>> Sent: Monday, July 30, 2001 10:57 AM
>> To: soap-user@xml.apache.org
>> Subject: Using soap over ssl
>> 
>> 
>> I can't get soap to work over ssl.  It seems to come down to the fact
>> that everytime I try to create a URL using the https protocol I get an
>> error saying
>> java.net.MalformedURLException: unknown protocol: https
>> 
>> before I try to create the URL I do this
>> 
>> System.setProperty("java.protocol.handler.pkgs",
>> "com.sun.net.ssl.internal.www.protocol");
>> 
>> so that I
>> 
>> use Sun's reference implementation of a URL handler for the
>> "https" URL protocol type.
>> 
>> I'm stumped, can anyone help.
>> 
>> Rich Catlett
>> 
>> 


Re: Using soap over ssl

Posted by Rich Catlett <ri...@more.net>.
I can't even get to where I'm dealing with certs.  No transmissions are 
even sent because the client does not understand the https protocol 
therefore it cannot create an https url.

Abraham Kang wrote:

> Hi Rich,
> 
>    Did you also set(in the beginning of your code):
> 
> 	java.security.Security.addProvider(new
> com.sun.net.ssl.internal.ssl.Provider());
> 
>    I guess you have already installed JSSE.
> 
>    If your server is running a test certificate you will need to import the
> correct CA root cert into your truststore using:
> 
>    keytool -import -file rootCACert -trustcacerts -alias
> yourCAalias -keystore c:/pathToYourTrustStore
> 
> You might also need the following in your code if using a Test Cert:
> 
>       System.setProperty("javax.net.ssl.truststore",
> "c:/pathToYourTrustStore");
>       System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");
> 
> Good Luck,
> Abraham
> 
>> -----Original Message-----
>> From: Rich Catlett [mailto:rich@more.net]
>> Sent: Monday, July 30, 2001 10:57 AM
>> To: soap-user@xml.apache.org
>> Subject: Using soap over ssl
>> 
>> 
>> I can't get soap to work over ssl.  It seems to come down to the fact
>> that everytime I try to create a URL using the https protocol I get an
>> error saying
>> java.net.MalformedURLException: unknown protocol: https
>> 
>> before I try to create the URL I do this
>> 
>> System.setProperty("java.protocol.handler.pkgs",
>> "com.sun.net.ssl.internal.www.protocol");
>> 
>> so that I
>> 
>> use Sun's reference implementation of a URL handler for the
>> "https" URL protocol type.
>> 
>> I'm stumped, can anyone help.
>> 
>> Rich Catlett
>> 
>> 


RE: Using soap over ssl

Posted by Abraham Kang <ab...@infogain.com>.
Hi Rich,

   Did you also set(in the beginning of your code):

	java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());

   I guess you have already installed JSSE.

   If your server is running a test certificate you will need to import the
correct CA root cert into your truststore using:

   keytool -import -file rootCACert -trustcacerts -alias
yourCAalias -keystore c:/pathToYourTrustStore

You might also need the following in your code if using a Test Cert:

      System.setProperty("javax.net.ssl.truststore",
"c:/pathToYourTrustStore");
      System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");

Good Luck,
Abraham

> -----Original Message-----
> From: Rich Catlett [mailto:rich@more.net]
> Sent: Monday, July 30, 2001 10:57 AM
> To: soap-user@xml.apache.org
> Subject: Using soap over ssl
>
>
> I can't get soap to work over ssl.  It seems to come down to the fact
> that everytime I try to create a URL using the https protocol I get an
> error saying
> java.net.MalformedURLException: unknown protocol: https
>
> before I try to create the URL I do this
>
> System.setProperty("java.protocol.handler.pkgs",
> "com.sun.net.ssl.internal.www.protocol");
>
> so that I
>
> use Sun's reference implementation of a URL handler for the
> "https" URL protocol type.
>
> I'm stumped, can anyone help.
>
> Rich Catlett
>
>


RE: Using soap over ssl

Posted by Abraham Kang <ab...@infogain.com>.
Hi Rich,

   Did you also set(in the beginning of your code):

	java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());

   I guess you have already installed JSSE.

   If your server is running a test certificate you will need to import the
correct CA root cert into your truststore using:

   keytool -import -file rootCACert -trustcacerts -alias
yourCAalias -keystore c:/pathToYourTrustStore

You might also need the following in your code if using a Test Cert:

      System.setProperty("javax.net.ssl.truststore",
"c:/pathToYourTrustStore");
      System.setProperty("javax.net.ssl.trustStorePassword","yourpassword");

Good Luck,
Abraham

> -----Original Message-----
> From: Rich Catlett [mailto:rich@more.net]
> Sent: Monday, July 30, 2001 10:57 AM
> To: soap-user@xml.apache.org
> Subject: Using soap over ssl
>
>
> I can't get soap to work over ssl.  It seems to come down to the fact
> that everytime I try to create a URL using the https protocol I get an
> error saying
> java.net.MalformedURLException: unknown protocol: https
>
> before I try to create the URL I do this
>
> System.setProperty("java.protocol.handler.pkgs",
> "com.sun.net.ssl.internal.www.protocol");
>
> so that I
>
> use Sun's reference implementation of a URL handler for the
> "https" URL protocol type.
>
> I'm stumped, can anyone help.
>
> Rich Catlett
>
>