For Programmers: Free Programming Magazines  


Home > Archive > Java Security > April 2005 > ssl properties in differents web apps in same app server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ssl properties in differents web apps in same app server
C?sar Fern?ndez via JavaKB.com

2005-04-01, 8:58 am

hello,

i have a web application deploy in a application server (WAS 4.0).
this application connect to a server with SSL.
when the application init, I configure the ssl properties:

private URL url;

init()
{
System.setProperty("javax.net.ssl.keyStore", "...");
...
System.setProperty("javax.net.ssl.trustStore", "...");
...
URL url = new URL("https://...");
...
}

when have a request:

doPost(req, resp)
{
URLConnection con = url.openConnection();
...
InputStream in = con.getInputStream();
...
}

well, in the same application server, i have others application deployed,
that access other services in others servers with SSL, and init the
configuration in the same way with others keystore and truststore.

all the applications are in the same app server (same virtual machine), and
call

System.setProperty("javax.net.ssl.keyStore", "...");

is this a problem???

thaks in advance,
C?sar.

--
Message posted via http://www.javakb.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com