我部署了一个webapp,它使用从数据库加载的jks。
它们在服务器上工作得很好但是当我在我的电脑上运行这个应用程序时,我在此代码中收到错误“无效的密钥库格式”:
public static KeyStore loadKeystore(InputStream is, String password,String type)
throws NoSuchAlgorithmException, CertificateException, IOException,
KeyStoreException {
KeyStore ks = KeyStore.getInstance(type);
ks.load(is, password.toCharArray()); //<--error thrown here
return ks;
}
服务器和我都有JAVA 1.6,我在我的电脑上安装了JAVA 8,但后来又回到了1.6(更改了环境)。这有什么关系吗?没有代码被更改。
我在.ini中运行了来自eclipse的webapp:C:/ Program Files(x86)/Java/jdk1.6.0_45/bin
关于我可以尝试检测问题或让它再次运行的任何想法?
由于
/ 我如何读/写 / --insert
INSERT INTO te_keystores (fields, keystore) VALUES
(fields,
decode('/u3+7QAAAAIAAAABAAAAAQA...etc','base64'));
- 使用hibernate
读取选择字段<property name="keystore" type="org.springframework.orm.hibernate3.support.BlobByteArrayType"
lazy="true">
<column name="KEYSTORE" />
</property>