-
Bug
-
Resolution: Fixed
-
P4
-
unknown, 1.2.1
-
fontanel
-
x86, sparc
-
solaris_7, windows_nt
jce1.2.1 test suite won't work under JDK1.2.2
Note:
jce1.2.1 test suite work well under JDK1.3
How to reproduce
1. bring work space from /net/sqesvr/vsn/SECURITY/jce1.2.1/TestSuite/src
2. set JAVA_HOME to your JDK such as /home/username/jdk1.2.2
3. set JCE_HOME to $JAVA_HOME/jre/lib/ext
4. add the folloing line into your java.policy file
permission java.security.SecurityPermission "insertProvider.SunJCE";
permission java.security.SecurityPermission "putProviderProperty.SunJCE";
5. Run the test suite by "sh Run.sh"
6. The following exception will be threw:
Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
at javax.crypto.NullCipher.<init>([DashoPro-V1.2-120198], Compiled Code)
at javax.crypto.CipherInputStream.<init>([DashoPro-V1.2-120198], Compiled Code)
at MyOwnNullCipherInputStream.<init>(MyOwnNullCipherInputStream.java, Compiled Code)
at TestCICOChaining.runTest(TestCICOChaining.java, Compiled Code)
at TestCICOChaining.run(TestCICOChaining.java, Compiled Code)
at TestCICOChaining.main(TestCICOChaining.java, Compiled Code)
Note:
jce1.2.1 test suite work well under JDK1.3
How to reproduce
1. bring work space from /net/sqesvr/vsn/SECURITY/jce1.2.1/TestSuite/src
2. set JAVA_HOME to your JDK such as /home/username/jdk1.2.2
3. set JCE_HOME to $JAVA_HOME/jre/lib/ext
4. add the folloing line into your java.policy file
permission java.security.SecurityPermission "insertProvider.SunJCE";
permission java.security.SecurityPermission "putProviderProperty.SunJCE";
5. Run the test suite by "sh Run.sh"
6. The following exception will be threw:
Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
at javax.crypto.NullCipher.<init>([DashoPro-V1.2-120198], Compiled Code)
at javax.crypto.CipherInputStream.<init>([DashoPro-V1.2-120198], Compiled Code)
at MyOwnNullCipherInputStream.<init>(MyOwnNullCipherInputStream.java, Compiled Code)
at TestCICOChaining.runTest(TestCICOChaining.java, Compiled Code)
at TestCICOChaining.run(TestCICOChaining.java, Compiled Code)
at TestCICOChaining.main(TestCICOChaining.java, Compiled Code)
- duplicates
-
JDK-4337151 java.lang.SecurityException: Cannot set up certs for a trusted CAs
- Closed