Hi!
I'm trying to sign a Infopath 2007 form with a specific certificate. So I use the Digital Signature Wizard just to select the parts of the document to be signed (currently whole document) and then try to sign the form according to the Signature template I captured from Infopath by .NET managed code.
I obtain the signature template using the e.SignedDataBlock.Signatures.CreateSignature() Method in the Sign Event of Infopath. And then use this template to sign the form with the sample code found in "Adding Digital Signatures to Form Data in InfoPath 2003 Using MSXML 5.0 or .NET Framework Managed Code" at http://msdn2.microsoft.com/en-us/library/bb608325(office.11).aspx.
Now I've the problem, that the document signed, can't be verified via Infopath. When I open the form in Infopath and verify the signature the Certificate information is set to ??? and the form status is invalid.
Does anybody know, which information is used to verify the document (the Signature is valid when verified with another tool). What might be the problem or which differences can be to the signature processed with Infopath 2007 itself? Are there structural conditions that must be used met (e.g. Infopath inserts the Signature value and KeyInfo in blocks of only 72 symbols in one line)?
Thanks for any detail that may help.
Best Regards,
Melanie