如何强制 Tomcat Web 应用程序在更新后重新加载信任存储

发布于 2024-07-06 08:45:08 字数 242 浏览 8 评论 0原文

我有以下问题。 我的基于 tomcat 5.5 的 Web 应用程序正在使用信任存储来验证 SSL 连接。 该应用程序允许用户添加或删除验证过程中使用的 CA 证书。 但是,从信任存储中添加或删除证书不会改变任何事情。 应用程序仅“识别”tomcat 启动时信任存储中的证书。 为了让它识别新的证书集,我需要重新启动 tomcat。

然而,这不是一个有效的解决方案。 我真正需要的是基于代码的解决方案。 请指教。

I have the following problem.
My tomcat 5.5 based web application is using a trust store to verify SSL connections.
The application allows the user to add or remove CA certificates to be used in the verification process.
However, adding or removing certificates from the trust store doesn't change a thing. The application 'recognizes' only the certificates that were in the trust store when tomcat started. For it to recognize the new set of certificates, I need to restart tomcat.

This is not a valid solution, however.
What I do need is a code based solution.
Please advice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拔了角的鹿 2024-07-13 08:45:08

编写一个仅针对此 Web 应用程序在信任存储中加载的自定义类加载器怎么样。 当您需要刷新内容并重新加载它时,您可以卸载类加载器吗?

how about writing a Custom Classloader that loads in the trust store ONLY for this webapp. You could unload the classloader when you need to refresh the contents and reload it ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文