java.security.spec.InvalidKeySpecException

java.security.InvalidKeyException: IOException: Only named ECParameters supported


Samebug tips1

Your key is invalid or you're forgetting to decode it first

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web108

Solution icon of stackoverflow
via Stack Overflow by James Bond
, 6 months ago
java.security.InvalidKeyException: IOException: Only named ECParameters supported

Solution icon of oraclecommunity
via Oracle Community by 843811, 1 year ago
java.security.InvalidKeyException: IOException: null

Solution icon of coderanch
via Coderanch by Alex Fox, 8 months ago
java.security.InvalidKeyException: IOException: null

Solution icon of github
via GitHub by openback
, 8 months ago
java.security.InvalidKeyException: IOException : Detect premature EOF

Solution icon of github
java.security.InvalidKeyException: IOException : DER input, Integer tag error

Solution icon of stackexchange-security
via Information Security by Vijay Selvaraj
, 1 year ago
java.security.InvalidKeyException: IOException : DerInputStream.getLength(): lengthTag=111, too big.

Solution icon of stackoverflow
java.security.InvalidKeyException: IOException : DER input, Integer tag error

Solution icon of stackoverflow
via Stack Overflow by BRabbit27
, 1 year ago
java.security.InvalidKeyException: IOException : DER input, Integer tag error

Solution icon of web
via nabble.com by Unknown author, 1 year ago
java.security.InvalidKeyException: IOException : DerInputStream.getLength(): lengthTag=111, too big.

Solution icon of web
via androidside.com by Unknown author, 1 year ago
java.security.InvalidKeyException: IOException : DerInputStream.getLength(): lengthTag=122, too big.

Stack trace

  • java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: Only named ECParameters supported at sun.security.ec.ECKeyFactory.engineGeneratePublic(ECKeyFactory.java:157) at java.security.KeyFactory.generatePublic(Unknown Source) at Main.a(Main.java:53) at Main.main(Main.java:37) Caused by: java.security.InvalidKeyException: IOException: Only named ECParameters supported at sun.security.x509.X509Key.decode(Unknown Source) at sun.security.x509.X509Key.decode(Unknown Source) at sun.security.ec.ECPublicKeyImpl.<init>(ECPublicKeyImpl.java:69) at sun.security.ec.ECKeyFactory.implGeneratePublic(ECKeyFactory.java:219) at sun.security.ec.ECKeyFactory.engineGeneratePublic(ECKeyFactory.java:153) ... 3 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 more bugmates