Meaningless Drivel is fun!
The moose likes Security and the fly likes Java and Windows keystores Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Java and Windows keystores" Watch "Java and Windows keystores" New topic

Java and Windows keystores

Jurica Krizanic
Ranch Hand

Joined: Dec 11, 2008
Posts: 38

Hello everyone,
I am trying to get an instance of Windows-ROOT and Windows-MY keystores and load both keystores.

It takes less than 1 second to load Windows-ROOT keystore, and about 12 seconds to load Windows-MY keystore.

I am running Java 1.6 update 24, 32-bit version on Windows 7.

On WindowsXP, Java 1.6, both keystores are loaded in less than a second.

Does anyone know why does it take that long to load Windows-MY keystore, and how to speed it up?

The code I use to load:


Thank you in advance!

Best regards,
Jurica Krizanic

Jurica Krizanic - Java developer, OCPJP6, Spring Core certified developer!
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

I could not reproduce the timing you reported. (Windows 7, java version 1.6.0_31-b05) both keystores loaded very quickly:
java32Programs>%J32%\bin\java TestKeystores Windows-MY
That took 106804384 (0.106 seconds)

java32Programs>%J32%\bin\java TestKeystores Windows-ROOT
That took 218768486 (0.218 seconds)

I wonder if you should try it with release 31?

or maybe post more of your code?
Jurica Krizanic
Ranch Hand

Joined: Dec 11, 2008
Posts: 38

Sorry for the late response.
I will try with the latest update.
I agree. Here's the link:
subject: Java and Windows keystores
It's not a secret anymore!