[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] Get the following error when running the SMimeSend.java sample program.



Can anyone tell me what is wrong?
When I'm trying to run the sample program using my own private key that I
obtained from Thawte, I get the following error:

Please help me,

thanks !!

GERT

sending implicitly signed message... 
sending encrypted message [RC2/40]... 
javax.mail.SendFailedException: Sending failed;
  nested exception is: 
	javax.mail.MessagingException: IOException while sending message;
  nested exception is: 
	java.io.IOException: javax.mail.MessagingException:
java.io.IOException: iaik.pkcs.PKCSException: 
	Unable to encrypt the symmetric key. 	
		at javax.mail.Transport.send0(Transport.java:218) 	
		at javax.mail.Transport.send(Transport.java:80) 	
		at demo.smime.SMimeSend.start(SMimeSend.java:170) 	
		at demo.smime.SMimeSend.main(SMimeSend.java:403) 
	javax.mail.MessagingException: IOException while sending message;
nested exception is:
	ava.io.IOException: javax.mail.MessagingException:
java.io.IOException: iaik.pkcs.PKCSException: Unable to encrypt the
symmetric key. 	
		at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:324)OK!

		at javax.mail.Transport.send0(Transport.java:163) 	at
javax.mail.Transport.send(Transport.java:80) 	
		at demo.smime.SMimeSend.start(SMimeSend.java:170) 	
		at demo.smime.SMimeSend.main(SMimeSend.java:403)
--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce