javax.ejb.EJBException: java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey

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

Solutions on the web

via sourceforge.net by Unknown author, 2 years ago
java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey
via ejbca by dani111
, 1 year ago
java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey
via ejbca by pked
, 1 year ago
java.security.InvalidKeyException: Private key must be instance of RSAPrivate(Crt)Key or have PKCS#8 encoding
via ejbca by merryo11
, 1 year ago
End Entity data contains a CA, -487214483, which the Certificate Profile, 2, isn't authorized to use.
javax.ejb.EJBException: java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey
at org.ejbca.cvc.KeyFactory.createInstance(KeyFactory.java:54)
at org.ejbca.cvc.CertificateGenerator.createCertificate(CertificateGenerator.java:124)
at org.ejbca.core.model.ca.caadmin.CVCCA.generateCertificate(CVCCA.java:458)
at org.ejbca.core.ejb.ca.sign.RSASignSessionBean.createCertificate(RSASignSessionBean.java:1464)

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.

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