spring是否需要重新启动才能重新加载keystore和truststore?

zbsbpyhn  于 11个月前  发布在  Spring
关注(0)|答案(1)|浏览(84)

我看到keystore是在spring初始化时构建的,因此如果向keystore添加新条目,应用程序需要重新启动。这也适用于信任库吗?
我可以通过创建一个新的SSLContext来重新加载而不重新启动吗?例如:

SSLContext sslcontext = SSLContext.getInstance("TLS");
sslcontext.init((KeyManager[])null, (TrustManager[])null, (SecureRandom)null);

字符串
谢谢你,谢谢

xdnvmnnf

xdnvmnnf1#

如果你通过Tomcat使用spring,你可以通过tomcat-admin-layer重新加载ssl-truststore(Re-read TLS configuration files)。
x1c 0d1x的数据
查看这里如何激活管理面板:Can I enable the tomcat manager app for Spring Boot's embedded tomcat?

相关问题