JBoss reloads a trust certificate without rebooting

Is there a way to "reload" the trusted certificate store in JBoss 4.2 without rebooting?

I am trying to call an EJB web service on a remote server with ssl, and I see a similar problem with SSLHandshakeException, as in the next article. What we do is the following and includes three machines: the JBoss server, which acts as the web service client for servers B and C.

1) On A, the user enters the host name for B. The machine on A receives a self-signed certificate B and installs it in the trust store (through the external shell of the script).

2) The SSL socket connection is made in B, which indicates that the certificate store seems to be loaded from this first attempt. The connection is successful and everything works.

3) Again on A, the user does the same as in 2, the script shell receives the C certificate and installs it in trusstore. However, when the connection to C is connected, it appears (by including javax.net.debug = ssl) that the trust store is not "rebooted" and does not find the C certificate, and we get an SSLHandshakeException.

After rebooting, JBoss loads the “updated” trust store and the connection to B and C works.

I would like to do this without restarting JBoss and putting together the above diagram is incorrect. If someone can point me to the documentation for the correct way to dynamically update the trust store, that would be much appreciated.

Problem calling a web service from a JBOSS EJB service

+3

Source: https://habr.com/ru/post/1778022/


All Articles