org.bouncycastle.cms.CMSException: key inappropriate for algorithm.

ejbca | psaxena | 10 years ago
  1. 0

    CMSEXception:key inappropriate for algorithm

    ejbca | 10 years ago | psaxena
    org.bouncycastle.cms.CMSException: key inappropriate for algorithm.
  2. 0

    Issue with CMS and BouncyCastle

    Oracle Community | 9 years ago | 843811
    org.bouncycastle.cms.CMSException: key inappropriate for algorithm.
  3. 0

    Encryption operation failed: java.security.InvalidKeyException: Illegal key size or - Project.net User Forums

    project.net | 12 months ago
    java.security.InvalidKeyException: Illegal key size or default parameters
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Encryption operation failed: java.security.InvalidKeyException: Illegal key size or [Archive] - Project.net User Forums

    project.net | 5 months ago
    java.security.InvalidKeyException: Illegal key size or default parameters
  6. 0

    SecretKeySpec, Illegal key size or default parameters

    Oracle Community | 1 decade ago | 843811
    java.security.InvalidKeyException: Illegal key size or default parameters

  1. Andreas Häber 16 times, last 3 weeks ago
  2. Handemelindo 2 times, last 1 month ago
  3. DannyDBag 1 times, last 3 months ago
  4. Nikolay Rybak 2 times, last 3 months ago
  5. muffinmannen 2444 times, last 5 months ago
1 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.security.InvalidKeyException

    Illegal key size or default parameters

    at javax.crypto.Cipher.a()
  2. Android Platform
    Cipher.init
    1. javax.crypto.Cipher.a(DashoA12275)
    2. javax.crypto.Cipher.init(DashoA12275)
    3. javax.crypto.Cipher.init(DashoA12275)
    3 frames
  3. BouncyCastle
    CMSEnvelopedDataGenerator.generate
    1. org.bouncycastle.cms.CMSEnvelopedDataGenerator$RecipientInf.toRecipientInfo(Unknown Source)
    2. org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown Source)
    3. org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown Source)
    3 frames
  4. org.ejbca.core
    RSASignSessionBean.createCertificate
    1. org.ejbca.core.protocol.ScepResponseMessage.create(ScepResponseMessage.java:279)
    2. org.ejbca.core.ejb.ca.sign.RSASignSessionBean.createCertificate(RSASignSessionBean.java:734)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  6. JBoss Application Server Server
    StatelessSessionContainer$ContainerInterceptor.invoke
    1. org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    2. org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
    2 frames
  7. JBoss Application Server Connector
    CachedConnectionInterceptor.invoke
    1. org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
    1 frame
  8. JBoss Application Server Server
    StatelessSessionInstanceInterceptor.invoke
    1. org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
    1 frame
  9. org.jboss.ws
    ServiceEndpointInterceptor.invoke
    1. org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:64)
    1 frame
  10. JBoss Application Server Server
    StatelessSessionProxy.invoke
    1. org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    2. org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    3. org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
    4. org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    5. org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    6. org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    7. org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
    8. org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    9. org.jboss.ejb.Container.invoke(Container.java:954)
    10. org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
    11. org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
    11 frames
  11. Unknown
    $Proxy210.createCertificate
    1. $Proxy210.createCertificate(Unknown Source)
    1 frame
  12. org.ejbca.ui
    ScepServlet.doGet
    1. org.ejbca.ui.web.protocol.ScepPkiOpHelper.scepCertRequest(ScepPkiOpHelper.java:80)
    2. org.ejbca.ui.web.protocol.ScepServlet.service(ScepServlet.java:204)
    3. org.ejbca.ui.web.protocol.ScepServlet.doGet(ScepServlet.java:175)
    3 frames
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    2 frames
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    2 frames
  15. JBoss Application Server Tomcat
    ReplyHeaderFilter.doFilter
    1. org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    1 frame
  16. Glassfish Core
    StandardContextValve.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    4 frames
  17. JBoss Application Server Tomcat
    JaccContextValve.invoke
    1. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    2. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    2 frames
  18. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    4 frames
  19. Grizzly HTTP
    MasterSlaveWorkerThread.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    4. org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    4 frames
  20. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame