Skip to content

Could not create DES cipher : getRevocationList #20

@vmasule

Description

@vmasule

I am getting below exception intermittently while getting revocation list from EJEBCA.

org.jscep.client.ClientException: org.jscep.transaction.TransactionException: org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: Could not create DES cipher
org.jscep.client.ClientException: org.jscep.transaction.TransactionException: org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: Could not create DES cipher
at org.jscep.client.Client.getRevocationList(Client.java:443)
at com.opencsi.jscepcli.JSCEPClient.retrieveRevocationList(JSCEPClient.java:200)
at com.opencsi.jscepcli.JSCEPClient.enrolEntityInPKIAndGetRevocationList(JSCEPClient.java:150)
at com.opencsi.jscepcli.JSCEPClient.scepClient(JSCEPClient.java:90)
at com.opencsi.jscepcli.JSCEPClient.main(JSCEPClient.java:297)
Caused by: org.jscep.transaction.TransactionException: org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: Could not create DES cipher
at org.jscep.transaction.NonEnrollmentTransaction.send(NonEnrollmentTransaction.java:94)
at org.jscep.client.Client.getRevocationList(Client.java:441)
... 4 more
Caused by: org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: Could not create DES cipher
at org.jscep.message.PkcsPkiEnvelopeDecoder.decode(PkcsPkiEnvelopeDecoder.java:94)
at org.jscep.message.PkiMessageDecoder.decode(PkiMessageDecoder.java:163)
at org.jscep.transaction.Transaction.decode(Transaction.java:107)
at org.jscep.transaction.NonEnrollmentTransaction.send(NonEnrollmentTransaction.java:92)
... 5 more
Caused by: org.bouncycastle.cms.CMSException: Could not create DES cipher
at org.jscep.message.PkcsPkiEnvelopeDecoder$1.getRecipientOperator(PkcsPkiEnvelopeDecoder.java:123)
at org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source)
at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source)
at org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source)
at org.jscep.message.PkcsPkiEnvelopeDecoder.decode(PkcsPkiEnvelopeDecoder.java:90)
... 8 more
Caused by: java.security.InvalidKeyException: Unwrapping failed
at com.sun.crypto.provider.RSACipher.engineUnwrap(RSACipher.java:445)
at javax.crypto.Cipher.unwrap(Cipher.java:2550)
at org.jscep.message.PkcsPkiEnvelopeDecoder$1.getRecipientOperator(PkcsPkiEnvelopeDecoder.java:112)
... 12 more
Caused by: javax.crypto.BadPaddingException: Decryption error
at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:380)
at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:291)
at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:363)
at com.sun.crypto.provider.RSACipher.engineUnwrap(RSACipher.java:440)
... 14 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions