3

We are using SunMSCAPI to retrieve the current user keystore as below..

keystore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");

We will need to build a JSSE keystore of type JKS/PKCS12 and pass it to an app..

Sort of beginning to understand how this works.. Any help would be appreciated.

4

1 回答 1

0

你有没有尝试过类似的东西

keystore.load(inputStreamFromOriginalFile, password);
KeyStore keystore2 = KeyStore.getInstance("JKS");
for (String name : toIterable(keystore.aliases())) {
    Entry entry = keystore.getEntry(name, protParam);
    keystore2.setEntry(name, entry, protParam);
}
keystore2,store(outputStream, password);

我的意思是将所有条目的转储副本转储到新的 keystore2 中。

于 2011-02-05T00:29:43.417 回答