I am interested in updating a truststore dynamically.
What would be the best option?
Reload SSLContext
or is it possible to recreate TrustManagers
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can't 'reload' an SSLContext
, but you can certainly create a new one. A custom TrustManager
won't help, as it is the underlying TrustManagerFactory
that has the connection to the keystore, not the TrustManager
.