de.flexiprovider.api.exceptions.InvalidKeySpecException: codec.asn1.ASN1Exception: ASN.1 type mismatch! Expected: codec.x509.AlgorithmIdentifier In : codec.pkcs8.PrivateKeyInfo At index: 1 Got tag : 4 and class: 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by TechnoWings Inc- Rajesh
, 1 year ago
codec.asn1.ASN1Exception: ASN.1 type mismatch! Expected: codec.x509.AlgorithmIdentifier In : codec.pkcs8.PrivateKeyInfo At index: 1 Got tag : 4 and class: 0
de.flexiprovider.api.exceptions.InvalidKeySpecException: codec.asn1.ASN1Exception: ASN.1 type mismatch! Expected: codec.x509.AlgorithmIdentifier In : codec.pkcs8.PrivateKeyInfo At index: 1 Got tag : 4 and class: 0
at de.flexiprovider.ec.keys.ECKeyFactory.generatePrivate(ECKeyFactory.java:125)
at de.flexiprovider.api.keys.KeyFactory.engineGeneratePrivate(KeyFactory.java:61)
at undefined.TestClass.stringToKey(TestClass.java:70)
at undefined.TestClass.main(TestClass.java:110)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.