Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by jvr Guest, 1 year ago
key inappropriate for signature.
via hivmr.com by Unknown author, 1 year ago
key inappropriate for signature.
java.security.InvalidKeyException: Supplied key (sun.security.mscapi.RSAPrivateKey) is not a RSAPrivateKey instance	at org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign(Unknown Source)	at java.security.SignatureSpi.engineInitSign(SignatureSpi.java:86)	at java.security.Signature$Delegate.engineInitSign(Signature.java:1104)	at java.security.Signature.initSign(Signature.java:498)	at org.bouncycastle.cms.CMSSignedDataStreamGenerator$SignerInf.toSignerInfo(Unknown Source)	at org.bouncycastle.cms.CMSSignedDataStreamGenerator$CmsSignedDataOutputStream.close(Unknown Source)	at org.bouncycastle.mail.smime.SMIMESignedGenerator$ContentSigner.write(Unknown Source)	at org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source)	at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)	at javax.activation.DataHandler.writeTo(DataHandler.java:302)	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)	at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)	at org.bouncycastle.mail.smime.handlers.multipart_signed.outputBodyPart(Unknown Source)	at org.bouncycastle.mail.smime.handlers.multipart_signed.writeTo(Unknown Source)	at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)	at javax.activation.DataHandler.writeTo(DataHandler.java:302)	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)	at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1743)	at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1719)	at javaemail.SignedMultipartEmailTest.main(SignedMultipartEmailTest.java:537)