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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.