我看到keystore是在spring初始化时构建的,因此如果向keystore添加新条目,应用程序需要重新启动。这也适用于信任库吗?
我可以通过创建一个新的SSLContext来重新加载而不重新启动吗?例如:
SSLContext sslcontext = SSLContext.getInstance("TLS");
sslcontext.init((KeyManager[])null, (TrustManager[])null, (SecureRandom)null);
字符串
谢谢你,谢谢
1条答案
按热度按时间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?