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:[EMAIL PROTECTED]]
>> Sent: Monday, July 30, 2001 1:27 PM
>> To: [EMAIL PROTECTED]
>> 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:[EMAIL PROTECTED]]
>>>> Sent: Monday, July 30, 2001 10:57 AM
>>>> To: [EMAIL PROTECTED]
>>>> 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
>>>>
>>>>