[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [iaik-jce] SMimeSend - Problem with pkcs7
The mapping between S/MIME types and data content handlers is done by a
RFC1524 mailcap file which is included in the IAIK-S/MIME distribution
(named "mailcap") to be copied into the lib directory of your JDK (/lib).
You alternatively may register the IAIK-S/MIME mailcap file dynamically by
using the default command map:
String mailcapFileName = ...;
MailcapCommandMap mc = new MailcapCommandMap(mailcapFileName);
CommandMap.setDefaultCommandMap(mc);
For a more detailed description of mailcap handling consult the Javadoc of
the Activation Framework.
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 Diego
Pietralunga
Gesendet: Dienstag, 19. September 2000 09:42
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce] SMimeSend - Problem with pkcs7
I'm trying to use the SMimeSend demo program (2.51) and when I try to send
the explicitly signed message I receive:
Provider 1: IAIK version: 2.5100000000000002 Provider 2: SUN version: 1.2
initializing KeyStore...
sending plain message...
sending explicitly signed message... 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/x-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:146) at
demo.smime.SMimeSend.main(SMimeSend.java:390) javax.mail.MessagingException:
IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
application/x-pkcs7-signature; name=smime.p7s at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:324) at
javax.mail.Transport.send0(Transport.java:163) at
javax.mail.Transport.send(Transport.java:80) at
demo.smime.SMimeSend.start(SMimeSend.java:146) at
demo.smime.SMimeSend.main(SMimeSend.java:390) OK!
I have downloaded JavaMail 1.1.3 and the activator from sun as suggested
(the POP3 provider ,also)
The plain message is correctly delivering;can you help?
Best Regards,
Diego Pietralunga
--
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
smime.p7s