org.bouncycastle.cms.CMSException: cannot recognise cipher: 1.2.840.113533.7.66.10

openas2 | uvax | 1 year 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.

Root Cause Analysis

  1. org.bouncycastle.cms.CMSException

    cannot recognise cipher: 1.2.840.113533.7.66.10

    at org.bouncycastle.cms.bc.EnvelopedDataHelper.createCipher()
  2. Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs
    BcRSAKeyTransEnvelopedRecipient.getRecipientOperator
    1. org.bouncycastle.cms.bc.EnvelopedDataHelper.createCipher(Unknown Source)
    2. org.bouncycastle.cms.bc.EnvelopedDataHelper.createContentCipher(Unknown Source)
    3. org.bouncycastle.cms.bc.BcRSAKeyTransEnvelopedRecipient.getRecipientOperator(Unknown Source)
    3 frames
  3. BouncyCastle
    RecipientInformation.getContent
    1. org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source)
    2. org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source)
    3. org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source)
    3 frames
  4. org.openas2.lib
    BCCryptoHelper.decrypt
    1. org.openas2.lib.helper.BCCryptoHelper.decrypt(BCCryptoHelper.java:194)
    1 frame
  5. org.openas2.processor
    NetModule$ConnectionThread.run
    1. org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(AS2ReceiverHandler.java:194)
    2. org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:123)
    3. org.openas2.processor.receiver.NetModule$ConnectionThread.run(NetModule.java:145)
    3 frames