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

AW: [iaik-jce] running demo.smime (S/MIME Warning)

Title: IAIK S/MIME Mapper Security Warning

IAIK S/MIME Mapper Security Warning

Message S/MIME properties

Encrypted using not encrypted
Digitally signed no
Signature validn/a
Signature trustedn/a

Compliance with policy for email addresses <*@iaik.at>

Encryption OK (None or better required)
Digital Signature NOT OK (digital signature required)

Try to move it to JRE/lib directory.

You also may set the mailcap file from your program, e.g.:

String mailcapFileName = ...;
MailcapCommandMap mc = new MailcapCommandMap(mailcapFileName);

For a more detailed description consult the Javadoc of the Activation
(Please notice that IAIK-S/MIME already provides a mailcap file)

Dieter Bratko
-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at [mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Aaron Haspel
Gesendet: Donnerstag, 7. Dezember 2000 03:57
An: iaik-jce@iaik.at
Betreff: [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.