SSLContext. Should I reload it?

坚强是说给别人听的谎言 提交于 2019-12-11 10:28:23

问题


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.



来源:https://stackoverflow.com/questions/13173610/sslcontext-should-i-reload-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!