We are creating an empty truststore at wildfly startup and later we are adding self signed certificates to the truststore.
After that we are reloading keystore and trust manager using below commands:
./bin/jboss-cli.sh --connect <<EOF
/subsystem=elytron/key-store=trust-store:load
/subsystem=elytron/trust-manager=TrustManager:init
EOF
We are enabling elytron to reload truststore without restarting the JVM.
It seems that the new truststore is not taken into use by the JVM. If we restart the JVM then only new truststore is taken into the consideration.
Could you please provide some pointers to resolve this issue?
Thanks,
Aniket