如何使用“多个" Java中的SSL证书? [英] How do I Use "Multiple" SSL certificates in Java?

查看:209
本文介绍了如何使用“多个" Java中的SSL证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以同时与多个主机通信的应用程序.在这种情况下,我需要使用多个密钥库来建立与其他主机的通信.

I have an application that communicate with multiple hosts at the same time. In this case I need to use multiple keystores to establish communication with other hosts.

在这种情况下,设置系统属性"javax.net.ssl.keyStore"是有问题的.我发现了之前的帖子,很好地讨论了这个问题.

In this case setting the system property "javax.net.ssl.keyStore" is problematic. I found an earlier post that discusses the problem well.

那么解决该问题的最佳方法是什么?

Then what would be the best approach to resolve this problem?

推荐答案

您可以将多个证书导入单个密钥库. keytool

You can import multiple certificates into a single keystore. keytool

这篇关于如何使用“多个" Java中的SSL证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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