更新后如何强制 tomcat Web 应用程序重新加载信任库

编程入门 行业动态 更新时间:2024-10-22 19:29:03
本文介绍了更新后如何强制 tomcat Web 应用程序重新加载信任库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有以下问题.我的基于 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 03:51:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1389310.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   加载   tomcat   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!