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

[iaik-jce] SMimeSigned Object Verification

I need to create a custom application for digital signing documents.

Please, correct me if I'm wrong.

I chose the S/Mime format (".p7m" extension),which means that a PKCS#7
SignedData Object is created and then wrapped by a SMimeSigned Object (is
the sequence correct?).

Things seem to go fine until I decide to verify the outcome against a
reference implementation (WorldTalk Secure Client).
This program has been found an the RSA site as application to check against
for S/Mime compliancy.

When I try to save the SMimeSigned Object on file (.p7m) I receive errors on
the format or integrity of the data.

I used the "SMimeStream" program and simply used a
"signed.writeTo(FileOutputStream)" , but when I open it with WorldSecure
app, I'm told that "the message was signed but the signature does not match
the contents".

I received also some other messages when I tried with other methods.

Can you please tell me what's wrong?

Or,at least, can you please tell me what's the (detailed) correct way to
create an application that performs the task I mentioned?

In my opinion there is something wrong with some encoding maybe,because I
could guess it from some error messages.
How does the writeTo() method works?Could the problem be there or I'm
totally wrong?

Please,help because interoperability is an issue for me.

ANY info or comment, WELCOME.

Best Regards,

         Diego Pietralunga
         Laboratorio di Telematica per il Territorio - Parma
         E-Mail: Diego@ltt.it

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