org.bouncycastle.cms.CMSException: exception unwrapping key: bad padding: doFinal() failed

ejbca | selbitschka | 2 years ago
  1. 0

    SCEP RA Mode decryption error - wrong CA used for decryption

    ejbca | 2 years ago | selbitschka
    org.bouncycastle.cms.CMSException: exception unwrapping key: bad padding: doFinal() failed
  2. 0

    Bouncy Castle - Dev - Issue verifying CMS content

    nabble.com | 7 months ago
    org.bouncycastle.cms.CMSException: exception unwrapping key: cannot create cipher: No such algorithm: 1.2.840.113549.1.1.1
  3. 0

    How to encrypt CSR into PKCS7 using bouncycastle?

    Stack Overflow | 4 years ago | blackhard
    org.bouncycastle.cms.CMSException: bad padding in message.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    scep enrolment failure

    ejbca | 5 years ago | mikkos
    org.bouncycastle.cms.CMSException: key invalid in message.

    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. org.bouncycastle.cms.CMSException

      exception unwrapping key: bad padding: doFinal() failed

      at org.bouncycastle.cms.jcajce.JceKeyTransRecipient.extractSecretKey()
    2. Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs
      JceKeyTransEnvelopedRecipient.getRecipientOperator
      1. org.bouncycastle.cms.jcajce.JceKeyTransRecipient.extractSecretKey(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0]
      2. org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient.getRecipientOperator(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0]
      2 frames
    3. BouncyCastle
      RecipientInformation.getContent
      1. org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0]
      2. org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0]
      3. org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0]
      3 frames
    4. org.ejbca.core
      ScepRequestMessage.getPassword
      1. org.ejbca.core.protocol.scep.ScepRequestMessage.decrypt(ScepRequestMessage.java:388)[ejbca-util.jar:EJBCA 6.2.0 (r19221)]
      2. org.ejbca.core.protocol.scep.ScepRequestMessage.getPassword(ScepRequestMessage.java:498)[ejbca-util.jar:EJBCA 6.2.0 (r19221)]
      2 frames
    5. org.ejbca.ui
      ScepServlet.doPost
      1. org.ejbca.ui.web.protocol.ScepPkiOpHelper.addOrEditUser(ScepPkiOpHelper.java:207)[classes:]
      2. org.ejbca.ui.web.protocol.ScepPkiOpHelper.scepCertRequest(ScepPkiOpHelper.java:135)[classes:]
      3. org.ejbca.ui.web.protocol.ScepServlet.service(ScepServlet.java:245)[classes:]
      4. org.ejbca.ui.web.protocol.ScepServlet.doPost(ScepServlet.java:156)[classes:]
      4 frames