Hi, You can set the trust store related system properties inside your client code like below.
System.setProperty("javax.net.ssl.trustStore", "/path/to/trustStore"); System.setProperty("javax.net.ssl.trustStorePassword", "password"); Hope this helps. Thanks. /thilina Thilina Mahesh Buddhika http://blog.thilinamb.com On Thu, Dec 10, 2009 at 12:15 AM, Christian Gosch <christian.go...@inovex.de > wrote: > Hi, > > how can I configure which SSL key store & trust store is used when AXIS2 > 1.4.1 is the first running code requesting a SSL connection as a SOAP > client in a given 1.4 JVM? > > > Problem: > > IBM WebSphere 6.0 (JDK/JRE 1.4.2) uses a defaultSSLSocketFactory which > is a singleton and once it's initialized with some particular value, > it'll be reused. (info from IBM L3) > > If nothing special is said about what to do how, AXIS2 1.4.1 simply > requests .../java/jre/lib/security/cacerts as key store & trust store > file. This is fatal if later (other) SOAP clients require key pairs not > present in this JVM default store. > > Is there some way to tell AXIS2 1.4.1 to request another file for key > store / trust store? > > Are there some JVM properties which can be used? > > Is there any possibility to achieve that via the magic Options object? > > Can this be achieved using the magic axis2.xml configuration file? > (Again: Where is this file, or where is it looked for, and what is > allowed to be inside?) > > > Desperate, > -- > Dipl.-Inform. Christian Gosch, PMI PMP > Systems Architecture, Project Management > > inovex GmbH > Büro Pforzheim > Karlsruher Strasse 71 > D-75179 Pforzheim > Tel: +49 (0)7231 3191-85 > Fax: +49 (0)7231 3191-91 > c.go...@inovex.de > www.inovex.de > > Sitz der Gesellschaft: Pforzheim > AG Mannheim, HRB 502126 > Geschäftsführer: Stephan Müller > > > >