Hello to all..
this is my first post on this forum..

My situation is that I have app server and two web applications..
This web applications are communicating over https with webservices..
Every webapp has its own certificate and keystore..

My question is.. how to setup that I can have multiple certificates and one keystore?

For example...
first application uses:

System.getProperties().put("javax.net.ssl.keyStore ","c:/cert/abakus.p12");
System.getProperties().put("javax.net.ssl.keyStore Password", "119234646"); System.getProperties().put("javax.net.ssl.keyStore Type", "PKCS12");
System.getProperties().put("javax.net.ssl.trustSto re", "c:/cert/peter.jks");

the second webapp uses

System.setProperty("javax.net.ssl.keyStore", "c:/cert/cert2.pfx");
System.setProperty("javax.net.ssl.keyStorePassword ", "12z2zz2");
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.trustStore", "c:/cert/test.jks");

How to setup or store certificates in the way that i will specify only one truststore?

thank you