-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
7u97, 8u65
-
linux_ubuntu
The following PKCS11 tests fail on Ubuntu 15.10 (have since been tested on other Linux flavors, and have been proven to fail on some of those too):
sun/security/pkcs11/ec/TestECDH.java
sun/security/pkcs11/ec/TestECDSA.java
The tests fail with exceptions like the following:
java.security.spec.InvalidKeySpecException: Could not create EC public key
at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
at java.security.KeyFactory.generatePublic(KeyFactory.java:328)
at TestECDH.test(TestECDH.java:94)
at TestECDH.main(TestECDH.java:86)
at PKCS11Test.premain(PKCS11Test.java:86)
at PKCS11Test.testNSS(PKCS11Test.java:401)
at PKCS11Test.main(PKCS11Test.java:96)
at TestECDH.main(TestECDH.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.InvalidKeyException: Could not create EC public key
at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
... 13 more
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
at sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
at sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
... 14 more
sun/security/pkcs11/ec/TestECDH.java
sun/security/pkcs11/ec/TestECDSA.java
The tests fail with exceptions like the following:
java.security.spec.InvalidKeySpecException: Could not create EC public key
at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
at java.security.KeyFactory.generatePublic(KeyFactory.java:328)
at TestECDH.test(TestECDH.java:94)
at TestECDH.main(TestECDH.java:86)
at PKCS11Test.premain(PKCS11Test.java:86)
at PKCS11Test.testNSS(PKCS11Test.java:401)
at PKCS11Test.main(PKCS11Test.java:96)
at TestECDH.main(TestECDH.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.InvalidKeyException: Could not create EC public key
at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
... 13 more
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
at sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
at sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
... 14 more
- duplicates
-
JDK-8142549 Test sun/security/pkcs11/ec/TestECGenSpec.java fails on Ubuntu 15.10
- Closed
- relates to
-
JDK-8138653 Default key sizes for the AlgorithmParameterGenerator and KeyPairGenerator implementations should be upgraded
- Resolved