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

ejbca | dani111 | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    EJBCA, JEE PKI Certificate Authority / Discussion / ejbca-develop:Problem with the generation cvc certificates

    sourceforge.net | 2 years ago
    javax.ejb.EJBException: java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey
  2. 0

    Problem with the generation cvc certificates

    ejbca | 7 years ago | dani111
    javax.ejb.EJBException: java.lang.ClassCastException: org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.bouncycastle.jce.provider.JCERSAPublicKey cannot be cast to java.security.interfaces.ECPublicKey

      at org.ejbca.cvc.KeyFactory.createInstance()
    2. org.ejbca.cvc
      CertificateGenerator.createCertificate
      1. org.ejbca.cvc.KeyFactory.createInstance(KeyFactory.java:54)
      2. org.ejbca.cvc.CertificateGenerator.createCertificate(CertificateGenerator.java:124)
      2 frames
    3. org.ejbca.core
      RSASignSessionBean.createCertificate
      1. org.ejbca.core.model.ca.caadmin.CVCCA.generateCertificate(CVCCA.java:458)
      2. org.ejbca.core.ejb.ca.sign.RSASignSessionBean.createCertificate(RSASignSessionBean.java:1464)
      2 frames