ibm jdk取本地证书源码如下:protected void engineInit(KeyStore paramKeyStore) throws KeyStoreException { if (paramKeyStore == null) { String str = File.separator; &nb...
显示全部ibm jdk
取本地证书源码如下:
protected void engineInit(KeyStore paramKeyStore)
throws KeyStoreException
{
if (paramKeyStore == null)
{
String str = File.separator;
try
{
File localFile = new File(System.getProperty("java.home") + str + "lib" + str + "security" + str + "cacerts");
if (!localFile.exists()) {
return;
}
FileInputStream localFileInputStream = new FileInputStream(localFile);
paramKeyStore = KeyStore.getInstance("jks");
paramKeyStore.load(localFileInputStream, null);
localFileInputStream.close();
}
catch (Exception localException) {}
}
this.trustManager = new X509TrustManagerImpl(paramKeyStore);
}
我在初始化的时候给 keystore赋值为null 在内部 会按照这个来解析的
但是 为什么还是 握手失败??
这是什么情况?
收起