I am trying to create multiple on-demand secure connections with different As400 instances. I made jdbc connections which depends on user input.

Now The problem is the certificates of those instances are also different.

I know to create a secure connection we set our certificates and password in System properties like - javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword. But this happens at startup only. We cannot change it again during lifetime of the application. Is there any possible way to change the trusted certificates at runtime?

0 Answers