我可以在不重新启动 JVM 的情况下将新证书添加到密钥库吗?
我想将新证书导入密钥库,而无需重新启动正在运行的服务。这可能吗?
或者,是否可以指定要使用的证书不在特定 URL 连接的密钥库中?
I'd like to import a new certificate into the keystore without restarting a running service. Is that possible?
Alternatively, is it possible to specify a certificate to use that's not in the keystore for a specific URL connection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,您可以指定用于特定 URL 获取的特定证书;本质上,您需要创建自己的 TrustManager 并将其交换,如下所示:
Turns out you can specify specific certificates to use for specific URL fetches; essentially, you need to create your own TrustManager and swap it in, like so: