org.bouncycastle.cms.CMSStreamException: key inappropriate for signature.

hivmr.com | 9 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

    problems with the private key at email signing

    Oracle Community | 6 years ago | jvr Guest
    org.bouncycastle.cms.CMSStreamException: key inappropriate for signature.
  2. 0

    db:: 4.20::PrivateKey Unknown key spec sm

    hivmr.com | 9 months ago
    org.bouncycastle.cms.CMSStreamException: key inappropriate for signature.
  3. 0

    Can't sign a dig sig utilizing java / keytool

    Stack Overflow | 7 years ago | Russ
    java.security.InvalidKeyException: Supplied key (sun.security.provider.DSAPrivat eKey) is not a RSAPrivateKey instance
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    External OCSP responder error

    ejbca | 6 years ago | johndorovski
    java.security.InvalidKeyException: Supplied key (org.bouncycastle.jce.provider.JCEECPrivateKey) is not a RSAPrivateKey instance
  6. 0

    problem with SSL certificate: Supplied key (nul... | Ignite Realtime

    igniterealtime.org | 9 months ago
    java.security.InvalidKeyException: Supplied key (null) is not a RSAPrivateKey instance

    1 unregistered visitors
    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. java.security.InvalidKeyException

      Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance

      at org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign()
    2. BouncyCastle
      JDKDigestSignature.engineInitSign
      1. org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign(Unknown Source)
      1 frame
    3. Java RT
      Signature.initSign
      1. java.security.SignatureSpi.engineInitSign(SignatureSpi.java:86)
      2. java.security.Signature$Delegate.engineInitSign(Signature.java:1104)
      3. java.security.Signature.initSign(Signature.java:498)
      3 frames
    4. BouncyCastle
      PKCS7ContentHandler.writeTo
      1. org.bouncycastle.cms.CMSSignedDataStreamGenerator$SignerInf.toSignerInfo(Unknown Source)
      2. org.bouncycastle.cms.CMSSignedDataStreamGenerator$CmsSignedDataOutputStream.close(Unknown Source)
      3. org.bouncycastle.mail.smime.SMIMESignedGenerator$ContentSigner.write(Unknown Source)
      4. org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source)
      4 frames
    5. Java RT
      DataHandler.writeTo
      1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:302)
      2 frames
    6. JavaMail API
      MimeBodyPart.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
      2. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
      2 frames
    7. BouncyCastle
      multipart_signed.writeTo
      1. org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
      2. org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)
      3. org.bouncycastle.mail.smime.handlers.multipart_signed.writeTo(Unknown Source)
      3 frames
    8. Java RT
      DataHandler.writeTo
      1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:302)
      2 frames
    9. JavaMail API
      MimeMessage.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)
      2. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1743)
      3. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1719)
      3 frames
    10. javaemail
      SignedMultipartEmailTest.main
      1. javaemail.SignedMultipartEmailTest.main(SignedMultipartEmailTest.java:537)
      1 frame