-
Bug
-
Resolution: Duplicate
-
P3
-
6
FULL PRODUCT VERSION :
java 64-bit server vm build 20.13-b06 mixed mode
ADDITIONAL OS VERSION INFORMATION :
linux ca-server 3.5.0-17-generic x86_64
Ubuntu 12.10
A DESCRIPTION OF THE PROBLEM :
I've tried to load a key into my soft p12 store. But it took several minutes with jrockit and oracle jdk. When I tried the openjdk it worked correctly.
I'm not sure if it matters but my ubuntu server is inside of vmware ESX.
I've attached a simple program which takes several minutes with oracle jdk and jrockit. on ubuntu.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error message
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
System.out.println( " Started creating " );
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
KeyPairGenerator generator = KeyPairGenerator.getInstance( " RSA " , " BC " );
generator.initialize(2048);
KeyPair keys = generator.generateKeyPair();
String password = " passpass " ;
KeyStore.PasswordProtection passProtectionEntry = new KeyStore.PasswordProtection(password.toCharArray());
KeyStore storeP12 = KeyStore.getInstance( " PKCS12 " );
storeP12.load(null, password.toCharArray());
ByteArrayOutputStream bus = new ByteArrayOutputStream();
storeP12.store(bus, password.toCharArray());
bus.flush();
bus.close();
System.out.println( " Done creating " );
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
use openjdk
java 64-bit server vm build 20.13-b06 mixed mode
ADDITIONAL OS VERSION INFORMATION :
linux ca-server 3.5.0-17-generic x86_64
Ubuntu 12.10
A DESCRIPTION OF THE PROBLEM :
I've tried to load a key into my soft p12 store. But it took several minutes with jrockit and oracle jdk. When I tried the openjdk it worked correctly.
I'm not sure if it matters but my ubuntu server is inside of vmware ESX.
I've attached a simple program which takes several minutes with oracle jdk and jrockit. on ubuntu.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error message
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
System.out.println( " Started creating " );
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
KeyPairGenerator generator = KeyPairGenerator.getInstance( " RSA " , " BC " );
generator.initialize(2048);
KeyPair keys = generator.generateKeyPair();
String password = " passpass " ;
KeyStore.PasswordProtection passProtectionEntry = new KeyStore.PasswordProtection(password.toCharArray());
KeyStore storeP12 = KeyStore.getInstance( " PKCS12 " );
storeP12.load(null, password.toCharArray());
ByteArrayOutputStream bus = new ByteArrayOutputStream();
storeP12.store(bus, password.toCharArray());
bus.flush();
bus.close();
System.out.println( " Done creating " );
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
use openjdk
- duplicates
-
JDK-6491602 PKCS12 KeyStore should not call secureRandom.generateSeed()
- Closed