更新后如何强制 tomcat Web 应用程序重新加载信任库 [英] How do I force a tomcat web application reload the trust store after I update it

查看:37
本文介绍了更新后如何强制 tomcat Web 应用程序重新加载信任库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题.我的基于 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 应用程序的信任存储中.当您需要刷新内容并重新加载时,您可以卸载类加载器吗?

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 ?

这篇关于更新后如何强制 tomcat Web 应用程序重新加载信任库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆