org.bouncycastle.cms.CMSException

exception unwrapping key: bad padding: doFinal() failed

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web39

  • exception unwrapping key: bad padding: doFinal() failed
  • exception unwrapping key: bad padding: doFinal() failed
  • exception unwrapping key: bad padding: Decryption error
  • Stack trace

    • org.bouncycastle.cms.CMSException: exception unwrapping key: bad padding: doFinal() failed at org.bouncycastle.cms.jcajce.JceKeyTransRecipient.extractSecretKey(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0] at org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient.getRecipientOperator(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0] at org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0] at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0] at org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source)[bcpkix-jdk15on-149.jar:1.49.0] at org.ejbca.core.protocol.scep.ScepRequestMessage.decrypt(ScepRequestMessage.java:388)[ejbca-util.jar:EJBCA 6.2.0 (r19221)] at org.ejbca.core.protocol.scep.ScepRequestMessage.getPassword(ScepRequestMessage.java:498)[ejbca-util.jar:EJBCA 6.2.0 (r19221)] at org.ejbca.ui.web.protocol.ScepPkiOpHelper.addOrEditUser(ScepPkiOpHelper.java:207)[classes:] at org.ejbca.ui.web.protocol.ScepPkiOpHelper.scepCertRequest(ScepPkiOpHelper.java:135)[classes:] at org.ejbca.ui.web.protocol.ScepServlet.service(ScepServlet.java:245)[classes:] at org.ejbca.ui.web.protocol.ScepServlet.doPost(ScepServlet.java:156)[classes:]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.