SSL handshaking gives "IOException: extra data given to DerValue constructor"

Solution Unverified - Updated -

Issue

  • After adding new certificate to truststore getting the following exception:
Caused by: java.lang.RuntimeException: Could not parse key values
        at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1000)
        at sun.security.pkcs11.P11Key$P11ECPublicKey.getW(P11Key.java:1021)
        at com.sun.net.ssl.internal.ssl.ECDHClientKeyExchange.<init>(ECDHClientKeyExchange.java:40)
        ... removed additional lines...
Caused by: java.io.IOException: extra data given to DerValue constructor
        at sun.security.util.DerValue.init(DerValue.java:368)
        at sun.security.util.DerValue.<init>(DerValue.java:277)
        at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:991)
  • JDK upgradation 32 bit to 64 bit Facing certificate Issue.

Environment

  • Oracle Java JDK 1.6.45
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content