SSL 和证书密钥库 [英] SSL and cert keystore

查看:45
本文介绍了SSL 和证书密钥库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Java 程序如何知道包含证书的密钥库在哪里?

How does my Java program know where my keystore containing the certificate is?

或者:我如何告诉我的 Java 程序在哪里查找密钥库?

Or alternatively: How do I tell my Java program where to look for the keystore?

以某种方式指定密钥库后,如何指定用于向客户端验证服务器的证书?

After specifying the keystore in some way, how to specify the certificate to use for authenticating the server to client?

推荐答案

System.setProperty("javax.net.ssl.trustStore", path_to_your_jks_file);

这篇关于SSL 和证书密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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