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

[iaik-jce] running demo.smime



I am unable to run the smime demo code (JDK 1.2.2 WinNT 4.0 SP6).  Even after creating a mailcap file, calling it simple.mailcap, with the recommended DataContentHandlers for mime/multipart, application/x-pkcs7-signature, etc., and placing it in my JDK\lib directory, as the docs specify, the following error is thrown on the explicitly signed message (first the plain message is sent successfully and without errors:
 
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pkcs7-signature; name=smime.p7s
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at demo.smime.SMimeSend.start(SMimeSend.java:172)
at demo.smime.SMimeSend.main(SMimeSend.java:504)
 
I very much appreciate any help.  Thanks.
 
Aaron
***************************************************************************
*                                                                         *
* IAIK S/MIME Mapper Security Info                                        *
* ===================================                                     *
*                                                                         *
* for message:                                                            *
*   From: "Aaron Haspel" <aaron@eredyne.com>                              *
*   Date: Wed, 6 Dec 2000 21:56:36 -0500                                  *
*   Subject: [iaik-jce] running demo.smime                                *
*                                                                         *
* Message S/MIME properties:                                              *
*                                                                         *
*   Encrypted using:    not encrypted                                     *
*                                                                         *
*   Digitally signed:   no                                                *
*   Signature valid:    n/a                                               *
*   Signature trusted   n/a                                               *
*                                                                         *
*                                                                         *
* Compliance with policy for email addresses *:                           *
*                                                                         *
*   Encryption:         OK (None or better required)                      *
*                                                                         *
*   Digital Signature:  OK (digital signature not required)               *
*                                                                         *
***************************************************************************