org.bouncycastle.cms.CMSException: key > inappropriate for algorithm. at org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator > $ContentEncryptor.write(Unknown Source) at > org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source) at > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)

nabble.com | 7 months 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.
  1. 0

    Bouncy Castle - Dev - Key Inappropriate for algorithm

    nabble.com | 7 months ago
    org.bouncycastle.cms.CMSException: key > inappropriate for algorithm. at org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator > $ContentEncryptor.write(Unknown Source) at > org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source) at > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)

    Root Cause Analysis

    1. org.bouncycastle.cms.CMSException

      key > inappropriate for algorithm. at org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator > $ContentEncryptor.write(Unknown Source) at > org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source) at > javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)

      at javax.activation.DataHandler.writeTo()
    2. Java RT
      DataHandler.writeTo
      1. javax.activation.DataHandler.writeTo(DataHandler.java:295)
      1 frame