Java:每年替代CACERTS文件的证书更新

发布于 2025-01-31 11:48:43 字数 191 浏览 2 评论 0原文

每年或三次,我们都会为各种客户提供证书更新。

我们需要在Chrome视图证书中打开他们的网站,并下载为.der。

每次我们点击Keytool命令并将其更新为Local上的Cacerts进行开发和生产以进行连接。

是否需要通过“ Java代码”下载和更新Cacerts文件夹的“ Java代码”,以防止突然的下降或其他任何方法?

Every year or thrice a month we have certificate updates for our various clients.

We need to open their website and in chrome view certificate and download as .der.

Everytime we hit keytool command and update it to cacerts on local for development and on Production for connection.

Is there way through "Java code" that we need to to download and update cacerts folder every time to prevent abrupt downtimes or any other way to do it?

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

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

发布评论

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

评论(1

辞旧 2025-02-07 11:48:43

是的,尽管您可能应该问自己有关为什么需要的问题。边缘案例比比皆是,有时是必要的。

有密钥库API,您可以在此处详细介绍一些代码:

​他们不应该。

Yes, although you should probably ask yourself questions on why you need to. Edge cases do abound and sometime it is simply necessary.

There is the Keystore API and you could write some code against that as detailed here: https://www.baeldung.com/java-keystore

You will, of course, need to ensure that correct checks and access control are in place, otherwise a bad actor could use this to modify your keystore and cause system to permit connect to/from things they shouldn't.

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