-
Bug
-
Resolution: Fixed
-
P4
-
6, 7, 8
-
generic, x86
-
linux, solaris, windows
TESTFAIL:sun/security/pkcs11/ec/ReadPKCS12.java
TESTFAIL:sun/security/pkcs11/ec/TestECDSA.java
TESTFAIL:sun/security/pkcs11/Secmod/AddPrivateKey.java
TESTFAIL:sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java
TESTFAIL:sun/security/tools/jarsigner/ec.sh
----------
The following test fails if nss library is being used through SunPKCS11 provider:
jce/ECC
Test log:
/java/sqe/results/security/promotion/7/b111/gtee/oel5.5-x64-32_c1/7-b111_promotion_security_oel5.5-x64-32_c1/ResultDir/ECC/
There are multiple test case in this test. Running test case, TestECDSA, will shows the issue.
Steps to reproduce:
amd-susew $cd
/java/sqe/results/security/promotion/7/b111/gtee/oel5.5-x64-32_c1/7-b111_promotion_security_oel5.5-x64-32_c1/ResultDir/ECC
amd-susew $export LD_LIBRARY_PATH=/java/sqe/comp//jsn/all_workspace/7_int/security/tools/lib/nss/Linux2.6
amd-susew $/java/re/jdk/7/promoted/all/b111/binaries/linux-i586/bin/java -cp . TestECDSA
FAIL: java.lang.Exception: Configuration file is required as argument
amd-susew $/java/re/jdk/7/promoted/all/b111/binaries/linux-i586/bin/java -cp . TestECDSA ecprovider.cfg
============================================
====Test ECC with SunPKCS11 provider ==========
============================================
FAIL: java.lang.Exception: Result mismatch, actual: false
The failure seems to start from b89.
The following test also fails starting from b89.
JSSE/SSLECC
More regression tests failing on Solaris 5.10 covered by this CR.
sun/security/pkcs11/Secmod/AddPrivateKey.java
sun/security/pkcs11/ec/ReadCertificates.java
sun/security/pkcs11/ec/ReadPKCS12.java
sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java
In the first 3, signature cannot be verified.
The last one shows
Caused by: java.lang.RuntimeException: Could not parse key values
at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1055)
at sun.security.pkcs11.P11Key$P11ECPublicKey.getParams(P11Key.java:1080)
at sun.security.ssl.HandshakeMessage$ECDH_ServerKeyExchange.<init>(HandshakeMessage.java:983)
at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:774)
at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:167)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1031)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1327)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:881)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
... 6 more
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=105, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:561)
at sun.security.util.DerValue.init(DerValue.java:365)
at sun.security.util.DerValue.<init>(DerValue.java:294)
at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1041)
... 16 more
- duplicates
-
JDK-6982178 sun/security/pkcs11/ tests failed on Solaris amd64
-
- Closed
-
-
JDK-7193816 sun/security/pkcs11/Secmod/AddPrivateKey.java failing intermittently (sol)
-
- Closed
-
-
JDK-2211538 TEST_BUG: sun/security/pkcs11/KeyAgreement/TestDH.java fails against 64-bit jdk on linux
-
- Closed
-
-
JDK-2211539 TEST_BUG: sun/security/pkcs11/KeyAgreement/TestDH.java fails against 64-bit jdk on linux
-
- Closed
-
- relates to
-
JDK-7152582 PKCS11 tests should use the NSS libraries available in the OS
-
- Resolved
-
-
JDK-6880559 Enable PKCS11 64-bit windows builds
-
- Closed
-
-
JDK-8068180 sun/security/pkcs11 tests are still in ProblemList.txt
-
- Closed
-