Re: Answer to the question: Howto use KSoap with SSL in J2SE the easy way.
Davide Inglima <[email protected]> Tue, 20 Apr 2004 17:01:35 +0200
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
StonedMonk wrote: > Hey Davide :: > You are right on. (I posted something similar when you > and I talked about this topic about 2 months ago) - > http://ksoap.enhydra.org/project/mailingLists/ksoap/msg00903.html Note that you were using j2me, I am using j2se ;D, two different beasts (like little brother and bigger brother...)... same family but different people with different quirks ;). > This does work! :-) I was able to get kSOAP and Tomcat > 4 to talk SSL - I used java's keytool to create local > certs and if you're using Sun's emulator, all you need > to do is make your cert "known". Some additional notes: I have two users in the keystore referenced by tomcat. One user is "tomcat" (as required by the doc I read on tomcat and SSL http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html ) The other user is "xxx" (which is our devteam's name). In the keystore I registered xxx with my chief user name Insert Keystore Keyword: imnotsocrazytoputthepasswordhere User Name: Name Surname but for tomcat I put the machine address, otherwise the javawebstart jar will complain :) Insert Keystore Keyword: imnotsocrazytoputthepasswordhere User Name: www.mymachinename.org [1] This is the only way I know to be able to have two different keys and not having to have a public CA entrusted key :). [1] actually I used the quad ip address.