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


7 months ago
Expert tip

Solutions on the web1

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

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, 2 years ago
Once, 8 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