This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Security and the fly likes JBoss as Web service client - SSL - keystore/truststore setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JBoss as Web service client - SSL - keystore/truststore setup" Watch "JBoss as Web service client - SSL - keystore/truststore setup" New topic

JBoss as Web service client - SSL - keystore/truststore setup

Dejan Mratinkovic
Ranch Hand

Joined: Nov 20, 2008
Posts: 65
I have JBoss server EJB3 application acting both as Server and Client (communicating with many other servers).

I have security transport set up. More or less implemented as advised on:

I have "client" Jboss keystore/truststore set up as system properties. That works fine as long as I have single application running on Jboss.

But, is there another way to set up client keystore/truststore, application specific? Is there a way to have more than one keystores per Jboss, so each web service client application can have its own?

I am consuming web services using EJB3 @WebServiceRef annotation.

greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
I am not familiar with the run-time structure of the JBoss environment, but in general, the relevant system properties for truststore and keystore are only read once per JVM invocation; changing them has no effect after they are read. The only other methods I know of for customizing these are explained in the JSSE Reference Guide.

Nice to meet you.
Ravi Natarajan

Joined: May 08, 2012
Posts: 1
Can you please let me know how you had successfully setup client-side trust-store in JBOSS ?

I have the similar scenario. My JBOSS server connects to other servers via HTTPS and now one such URL it cannot connect. So, I have obtained the public cert from the server into a client.truststore. Now, this client.truststore should be installed in the JBOSS so that it trusts the server it connects to.

hence, please let me know how you made it work successfully.

thanks in advance.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JBoss as Web service client - SSL - keystore/truststore setup
It's not a secret anymore!